mirror of
https://github.com/gradle/actions.git
synced 2025-04-16 15:59:18 +08:00
Update java-toolchain sample to use Kotlin DSL
This commit is contained in:
parent
aa88309fbd
commit
acd2925667
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
@ -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"
|
Loading…
x
Reference in New Issue
Block a user