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:
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
java
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
@@ -12,6 +12,10 @@ repositories {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
testing {
|
||||||
testImplementation('junit:junit:4.13.2')
|
suites {
|
||||||
|
val test by getting(JvmTestSuite::class) {
|
||||||
|
useJUnit()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
plugins {
|
|
||||||
id("org.gradle.toolchains.foojay-resolver-convention") version("0.7.0")
|
|
||||||
}
|
|
||||||
|
|
||||||
rootProject.name = 'basic'
|
|
||||||
6
.github/workflow-samples/java-toolchain/settings.gradle.kts
vendored
Normal file
6
.github/workflow-samples/java-toolchain/settings.gradle.kts
vendored
Normal 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"
|
||||||
Reference in New Issue
Block a user