Skip to content

Commit

Permalink
Add junit-platform-launcher to test runtime
Browse files Browse the repository at this point in the history
This is fix the following warning about using deprecated Gradle
features:

  The automatic loading of test framework implementation dependencies
  has been deprecated. This is scheduled to be removed in Gradle 9.0.
  Declare the desired test framework directly on the test suite or
  explicitly declare the test framework implementation dependencies on
  the test's runtime classpath. Consult the upgrading guide for
  further information:
  https://docs.gradle.org/8.7/userguide/upgrading_version_8.html#test_framework_implementation_dependencies
  • Loading branch information
kahgoh committed Jan 16, 2025
1 parent 7edff84 commit f42c459
Show file tree
Hide file tree
Showing 132 changed files with 264 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exercises/concept/calculator-conundrum/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/concept/football-match-reports/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/concept/gotta-snatch-em-all/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/concept/lasagna/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/concept/secrets/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/concept/tim-from-marketing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/concept/wizards-and-warriors-2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/concept/wizards-and-warriors/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/acronym/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/affine-cipher/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/all-your-base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/allergies/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/alphametics/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/anagram/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/armstrong-numbers/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/atbash-cipher/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/bank-account/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/binary-search-tree/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/binary-search/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/bob/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/book-store/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/bottle-song/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/bowling/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/change/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/circular-buffer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/clock/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/collatz-conjecture/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/complex-numbers/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/connect/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/crypto-square/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/custom-set/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/darts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/diamond/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/difference-of-squares/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/dnd-character/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/dominoes/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/dot-dsl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/eliuds-eggs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/error-handling/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/etl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/flatten-array/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/food-chain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/forth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
2 changes: 2 additions & 0 deletions exercises/practice/gigasecond/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.0")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.1"

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
Loading

0 comments on commit f42c459

Please sign in to comment.