summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle10
1 files changed, 4 insertions, 6 deletions
diff --git a/build.gradle b/build.gradle
index b8a9feb..d5c0b1f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -6,8 +6,8 @@ subprojects {
6 apply plugin: 'java' 6 apply plugin: 'java'
7 apply plugin: 'maven-publish' 7 apply plugin: 'maven-publish'
8 8
9 sourceCompatibility = 1.8 9 sourceCompatibility = JavaVersion.VERSION_16
10 targetCompatibility = 1.8 10 targetCompatibility = JavaVersion.VERSION_16
11 11
12 repositories { 12 repositories {
13 mavenLocal() 13 mavenLocal()
@@ -40,9 +40,7 @@ subprojects {
40 tasks.withType(JavaCompile).configureEach { 40 tasks.withType(JavaCompile).configureEach {
41 it.options.encoding = "UTF-8" 41 it.options.encoding = "UTF-8"
42 42
43 if (JavaVersion.current().isJava9Compatible()) { 43 it.options.release = 16
44 it.options.release = 8
45 }
46 } 44 }
47 45
48 publishing { 46 publishing {
@@ -88,4 +86,4 @@ task checkVersion {
88 } 86 }
89} 87}
90 88
91publish.mustRunAfter checkVersion \ No newline at end of file 89publish.mustRunAfter checkVersion