mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
Update java-toolchain sample to use Kotlin DSL
This commit is contained in:
21
.github/workflow-samples/java-toolchain/build.gradle.kts
vendored
Normal file
21
.github/workflow-samples/java-toolchain/build.gradle.kts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
plugins {
|
||||
java
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(16)
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
testing {
|
||||
suites {
|
||||
val test by getting(JvmTestSuite::class) {
|
||||
useJUnit()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user