Skip to content

Commit 5c4fe0a

Browse files
committed
Start compiling as Java 11 bytecode.
1 parent 599e1e4 commit 5c4fe0a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ artifactIdMaven=spotless-maven-plugin
1616
artifactIdGradle=spotless-plugin-gradle
1717

1818
# Build requirements
19-
VER_JAVA=1.8
19+
VER_JAVA=11
2020
VER_SPOTBUGS=4.7.3
2121
VER_JSR_305=3.0.2
2222

gradle/java-setup.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
// setup java
66
apply plugin: 'java'
7-
8-
sourceCompatibility = VER_JAVA
9-
targetCompatibility = VER_JAVA
10-
tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' }
7+
tasks.withType(JavaCompile).configureEach {
8+
options.encoding = 'UTF-8'
9+
options.release = Integer.parseInt(VER_JAVA)
10+
}
1111

1212
//////////////
1313
// SPOTBUGS //

0 commit comments

Comments
 (0)