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
No known key found for this signature in database
3 changed files with 14 additions and 9 deletions

View File

@ -1,5 +1,5 @@
plugins {
id 'java'
java
}
java {
@ -12,6 +12,10 @@ repositories {
mavenCentral()
}
dependencies {
testImplementation('junit:junit:4.13.2')
testing {
suites {
val test by getting(JvmTestSuite::class) {
useJUnit()
}
}
}

View File

@ -1,5 +0,0 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.7.0")
}
rootProject.name = 'basic'

View File

@ -0,0 +1,6 @@
plugins {
// Apply the foojay-resolver plugin to allow automatic download of JDKs
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0"
}
rootProject.name = "java-toolchains"