Unverified Commit acd29256 authored by daz's avatar daz
Browse files

Update java-toolchain sample to use Kotlin DSL

parent aa88309f
Loading
Loading
Loading
Loading
+7 −3
Changes for .github/workflow-samples/java-toolchain/build.gradle.kts: 7 added lines, 3 removed lines.
Original line number Diff line number Diff line
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()
        }
    }
}
+3 −2
Changes for .github/workflow-samples/java-toolchain/settings.gradle.kts: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
plugins {
    id("org.gradle.toolchains.foojay-resolver-convention") version("0.7.0")
    // Apply the foojay-resolver plugin to allow automatic download of JDKs
    id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0"
}

rootProject.name = 'basic'
rootProject.name = "java-toolchains"