From b64f10f371b0913ef7b001c768ece2935368d306 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Feb 2024 01:23:50 +0000 Subject: [PATCH] Java 17 --- build.gradle | 9 +++------ jitpack.yml | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 81d037c..bc5d05d 100644 --- a/build.gradle +++ b/build.gradle @@ -48,7 +48,7 @@ configure(project(':annotations')){ options.encoding = 'UTF-8' options.compilerArgs << '-Xlint:-options' - sourceCompatibility = compilerVersion + sourceCompatibility = 17 targetCompatibility = 8 doFirst{ @@ -76,13 +76,14 @@ dependencies{ } jar{ + exclude 'gltfrenzy/spec/**' metaInf{ from layout.projectDirectory.file('LICENSE') } } tasks.withType(JavaCompile).configureEach{ - sourceCompatibility = compilerVersion + sourceCompatibility = 17 options.release = 8 options.compilerArgs << '-Xlint:-options' @@ -90,10 +91,6 @@ tasks.withType(JavaCompile).configureEach{ options.encoding = 'UTF-8' } -tasks.withType(Jar).configureEach{ - exclude 'gltfrenzy/spec/**' -} - publishing.publications.create('maven', MavenPublication){ from components.java } diff --git a/jitpack.yml b/jitpack.yml index 2d2da15..cbf1aa7 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,6 +1,6 @@ before_install: - - sdk install java 21.0.1-tem - - sdk use java 21.0.1-tem + - sdk install java 17.0.10-tem + - sdk use java 17.0.10-tem install: - chmod +x gradlew - ./gradlew publishToMavenLocal