diff --git a/common/kdb-java/build.gradle b/common/kdb-java/build.gradle index efb354f0..c7e100f0 100644 --- a/common/kdb-java/build.gradle +++ b/common/kdb-java/build.gradle @@ -1,4 +1,4 @@ -apply from: project(":").file('gradle/java_no_style.gradle') +apply from: project(":").file('gradle/java_8_no_style.gradle') dependencies { implementation group: 'com.google.code.gson', name: 'gson' diff --git a/gradle/java_8_no_style.gradle b/gradle/java_8_no_style.gradle new file mode 100644 index 00000000..e64264ec --- /dev/null +++ b/gradle/java_8_no_style.gradle @@ -0,0 +1,9 @@ +// Defines shared aspects of a Gradle Java module without style/format checking. +// +// NOTE: Only use with a good reason to, e.g., for vendored code. Otherwise, please prefer `gradle/java.gradle`. + +apply plugin: 'java' +apply from: project(":").file('gradle/mixins/dependencies.gradle') + +sourceCompatibility = 1.8 +targetCompatibility = 1.8 diff --git a/kdb-mojo-scorer/build.gradle b/kdb-mojo-scorer/build.gradle index f594fc96..681bf106 100644 --- a/kdb-mojo-scorer/build.gradle +++ b/kdb-mojo-scorer/build.gradle @@ -1,7 +1,7 @@ plugins { id 'com.github.johnrengelman.shadow' } -apply from: project(":").file('gradle/java_no_style.gradle') +apply from: project(":").file('gradle/java_8_no_style.gradle') dependencies { implementation project(':common:kdb-java')