Skip to content

Commit acd2925

Browse files
committed
Update java-toolchain sample to use Kotlin DSL
1 parent aa88309 commit acd2925

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.github/workflow-samples/java-toolchain/build.gradle renamed to .github/workflow-samples/java-toolchain/build.gradle.kts

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'java'
2+
java
33
}
44

55
java {
@@ -12,6 +12,10 @@ repositories {
1212
mavenCentral()
1313
}
1414

15-
dependencies {
16-
testImplementation('junit:junit:4.13.2')
17-
}
15+
testing {
16+
suites {
17+
val test by getting(JvmTestSuite::class) {
18+
useJUnit()
19+
}
20+
}
21+
}

.github/workflow-samples/java-toolchain/settings.gradle

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
plugins {
2+
// Apply the foojay-resolver plugin to allow automatic download of JDKs
3+
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0"
4+
}
5+
6+
rootProject.name = "java-toolchains"

0 commit comments

Comments
 (0)