Try and explicitly specify Java 8 in the modules.

This commit is contained in:
Andrew Steinborn
2020-11-06 18:52:00 -05:00
parent fb888c3b8a
commit 89e1a07448
4 changed files with 15 additions and 5 deletions

View File

@@ -8,6 +8,11 @@ apply from: '../gradle/checkstyle.gradle'
apply from: '../gradle/publish.gradle' apply from: '../gradle/publish.gradle'
apply plugin: 'com.github.johnrengelman.shadow' apply plugin: 'com.github.johnrengelman.shadow'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
sourceSets { sourceSets {
ap { ap {
compileClasspath += main.compileClasspath + main.output compileClasspath += main.compileClasspath + main.output

View File

@@ -43,11 +43,6 @@ allprojects {
} }
} }
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories { repositories {
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()

View File

@@ -7,6 +7,11 @@ plugins {
apply from: '../gradle/checkstyle.gradle' apply from: '../gradle/checkstyle.gradle'
apply from: '../gradle/publish.gradle' apply from: '../gradle/publish.gradle'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies { dependencies {
implementation "com.google.guava:guava:${guavaVersion}" implementation "com.google.guava:guava:${guavaVersion}"
implementation "io.netty:netty-handler:${nettyVersion}" implementation "io.netty:netty-handler:${nettyVersion}"

View File

@@ -8,6 +8,11 @@ plugins {
apply from: '../gradle/checkstyle.gradle' apply from: '../gradle/checkstyle.gradle'
apply plugin: 'com.github.johnrengelman.shadow' apply plugin: 'com.github.johnrengelman.shadow'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
jar { jar {
manifest { manifest {
def buildNumber = System.getenv("BUILD_NUMBER") ?: "unknown" def buildNumber = System.getenv("BUILD_NUMBER") ?: "unknown"