Update java-toolchain sample to use Kotlin DSL

This commit is contained in:
daz
2025-03-25 15:25:09 -06:00
parent aa88309fbd
commit acd2925667
3 changed files with 14 additions and 9 deletions

View File

@@ -0,0 +1,21 @@
plugins {
java
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(16)
}
}
repositories {
mavenCentral()
}
testing {
suites {
val test by getting(JvmTestSuite::class) {
useJUnit()
}
}
}