Skip to content

Commit daef56f

Browse files
committed
java 1.8 source compatibility
1 parent 8e0f9d0 commit daef56f

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ allprojects { project ->
1111
mavenCentral()
1212
}
1313

14+
plugins.withType(JavaBasePlugin) {
15+
sourceCompatibility = JavaVersion.VERSION_1_8
16+
targetCompatibility = JavaVersion.VERSION_1_8
17+
}
18+
1419
plugins.withType(MavenPublishPlugin) {
1520
project.plugins.apply 'signing'
1621

1722
plugins.withType(JavaPlugin) {
1823
java {
19-
tasks.withType(JavaCompile) {
20-
options.release = 8
21-
}
2224
withJavadocJar()
2325
withSourcesJar()
2426
}

spock-outputcapture/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ plugins {
44
id 'maven-publish'
55
}
66

7-
java {
8-
withJavadocJar()
9-
withSourcesJar()
10-
}
11-
127
dependencies {
138
compileOnly platform('org.codehaus.groovy:groovy-bom:3.0.7')
149
compileOnly platform('org.spockframework:spock-bom:2.0-M4-groovy-3.0')

0 commit comments

Comments
 (0)