We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 599e1e4 commit 5c4fe0aCopy full SHA for 5c4fe0a
gradle.properties
@@ -16,7 +16,7 @@ artifactIdMaven=spotless-maven-plugin
16
artifactIdGradle=spotless-plugin-gradle
17
18
# Build requirements
19
-VER_JAVA=1.8
+VER_JAVA=11
20
VER_SPOTBUGS=4.7.3
21
VER_JSR_305=3.0.2
22
gradle/java-setup.gradle
@@ -4,10 +4,10 @@
4
5
// setup java
6
apply plugin: 'java'
7
-
8
-sourceCompatibility = VER_JAVA
9
-targetCompatibility = VER_JAVA
10
-tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' }
+tasks.withType(JavaCompile).configureEach {
+ options.encoding = 'UTF-8'
+ options.release = Integer.parseInt(VER_JAVA)
+}
11
12
//////////////
13
// SPOTBUGS //
0 commit comments