We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24526b6 commit 5a13516Copy full SHA for 5a13516
build.gradle
@@ -11,15 +11,12 @@ plugins {
11
id "biz.aQute.bnd.builder" version "6.4.0"
12
}
13
14
-if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
15
- def msg = String.format("This build must be run with java 1.8 - you are running %s - gradle finds the JDK via JAVA_HOME=%s",
16
- JavaVersion.current(), System.getenv("JAVA_HOME"))
17
- throw new GradleException(msg)
+java {
+ toolchain {
+ languageVersion = JavaLanguageVersion.of(11)
+ }
18
19
20
-sourceCompatibility = 1.8
21
-targetCompatibility = 1.8
22
-
23
def getDevelopmentVersion() {
24
def output = new StringBuilder()
25
def error = new StringBuilder()
0 commit comments