Skip to content

Commit 6c4a0b3

Browse files
authored
Add junit-platform-launcher to test runtime (#2905)
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
1 parent f2720d8 commit 6c4a0b3

File tree

148 files changed

+296
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+296
-0
lines changed

exercises/concept/annalyns-infiltration/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/bird-watcher/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/blackjack/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/booking-up-for-beauty/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/calculator-conundrum/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/captains-log/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/cars-assemble/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/football-match-reports/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/gotta-snatch-em-all/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/jedliks-toy-car/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/karls-languages/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/lasagna/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/log-levels/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/logs-logs-logs/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/need-for-speed/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/remote-control-competition/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/salary-calculator/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/secrets/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/squeaky-clean/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/tim-from-marketing/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/wizards-and-warriors-2/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/concept/wizards-and-warriors/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/acronym/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/affine-cipher/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/all-your-base/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/allergies/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/alphametics/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/anagram/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/armstrong-numbers/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/atbash-cipher/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/bank-account/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/binary-search-tree/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/binary-search/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/bob/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/book-store/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/bottle-song/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/bowling/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/change/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/circular-buffer/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/clock/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/collatz-conjecture/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/complex-numbers/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/connect/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

exercises/practice/crypto-square/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencies {
1010
testImplementation platform("org.junit:junit-bom:5.10.0")
1111
testImplementation "org.junit.jupiter:junit-jupiter"
1212
testImplementation "org.assertj:assertj-core:3.25.1"
13+
14+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1315
}
1416

1517
test {

0 commit comments

Comments
 (0)