diff --git a/api/build.gradle b/api/build.gradle index ddbdbe951..7eca5c59d 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -8,6 +8,11 @@ apply from: '../gradle/checkstyle.gradle' apply from: '../gradle/publish.gradle' apply plugin: 'com.github.johnrengelman.shadow' +java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 +} + sourceSets { ap { compileClasspath += main.compileClasspath + main.output diff --git a/build.gradle b/build.gradle index 06f791981..f3572eff8 100644 --- a/build.gradle +++ b/build.gradle @@ -43,11 +43,6 @@ allprojects { } } - java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 - } - repositories { mavenLocal() mavenCentral() diff --git a/native/build.gradle b/native/build.gradle index ed7cf0aa3..0a348523f 100644 --- a/native/build.gradle +++ b/native/build.gradle @@ -7,6 +7,11 @@ plugins { apply from: '../gradle/checkstyle.gradle' apply from: '../gradle/publish.gradle' +java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 +} + dependencies { implementation "com.google.guava:guava:${guavaVersion}" implementation "io.netty:netty-handler:${nettyVersion}" diff --git a/proxy/build.gradle b/proxy/build.gradle index e7eb88a84..ff2e1fe0a 100644 --- a/proxy/build.gradle +++ b/proxy/build.gradle @@ -8,6 +8,11 @@ plugins { apply from: '../gradle/checkstyle.gradle' apply plugin: 'com.github.johnrengelman.shadow' +java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 +} + jar { manifest { def buildNumber = System.getenv("BUILD_NUMBER") ?: "unknown"