Skip to content

Commit 1bcef49

Browse files
committed
Pin JDK release for AbstractCompile
1 parent 797b5b8 commit 1bcef49

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

build.gradle.kts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ version = providers.gradleProperty("VERSION_NAME").get()
1515
group = providers.gradleProperty("GROUP").get()
1616
description = providers.gradleProperty("POM_DESCRIPTION").get()
1717

18-
java {
19-
sourceCompatibility = JavaVersion.VERSION_1_8
20-
targetCompatibility = JavaVersion.VERSION_1_8
21-
}
22-
2318
gradlePlugin {
2419
website = providers.gradleProperty("POM_URL")
2520
vcsUrl = providers.gradleProperty("POM_URL")
@@ -93,6 +88,14 @@ dependencies {
9388
testImplementation("org.junit.platform:junit-platform-suite-engine")
9489
}
9590

91+
tasks.withType<GroovyCompile>().configureEach {
92+
options.release = 8
93+
}
94+
95+
tasks.withType<JavaCompile>().configureEach {
96+
options.release = 8
97+
}
98+
9699
tasks.withType<Test>().configureEach {
97100
useJUnitPlatform()
98101

0 commit comments

Comments
 (0)