From f5582d388aed600e53c8ac3ba526960e7fdde3c6 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Mon, 2 Jan 2023 01:02:44 +0100 Subject: [PATCH] Add a dedicated java 8 package, separate the standard version --- README.md | 6 +++--- scripts/core/deploy_release.sh | 3 ++- scripts/core/deploy_snapshot.sh | 2 +- scripts/core/only_compile_release.sh | 3 ++- tdlight/pom.xml | 17 +++++++++++++---- 5 files changed, 21 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 7d6bda1..c99dd70 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ ## 💻 Supported platforms -**Java versions**: from Java 8 to Java 17 +**Java versions**: from Java 17 to Java 19+ (Legacy Java 8+ support with `tdlight-java-8`) **Operating systems**: Linux, Windows, MacOS @@ -84,7 +84,7 @@ If you are using Maven, edit your `pom.xml` file as below: it.tdlight - tdlight-java + tdlight-java @@ -114,7 +114,7 @@ dependencies { implementation platform('it.tdlight:tdlight-java-bom:VERSION') // do not specify the versions on the dependencies below! - implementation 'it.tdlight:tdlight-java' + implementation 'it.tdlight:tdlight-java' // Use tdlight-java-8 if you are using java 8 to 16 implementation 'it.tdlight:tdlight-natives-linux-amd64' // Include other native versions that you want, for example for windows, osx, ... } diff --git a/scripts/core/deploy_release.sh b/scripts/core/deploy_release.sh index 10d5014..1f8eb6a 100755 --- a/scripts/core/deploy_release.sh +++ b/scripts/core/deploy_release.sh @@ -11,7 +11,8 @@ fi cd "../../" cd "bom" -mvn -B -Drevision="${REVISION}" clean deploy +mvn -B -Drevision="${REVISION}" -Dtdlight.build.type=legacy clean deploy +mvn -B -Drevision="${REVISION}" -Dtdlight.build.type=standard clean deploy cd "../" echo "Done." diff --git a/scripts/core/deploy_snapshot.sh b/scripts/core/deploy_snapshot.sh index 4a3d805..6bf8c82 100755 --- a/scripts/core/deploy_snapshot.sh +++ b/scripts/core/deploy_snapshot.sh @@ -4,7 +4,7 @@ cd "../../" cd "bom" -mvn -B clean deploy +mvn -B clean deploy -Dtdlight.build.type=standard cd "../" echo "Done." diff --git a/scripts/core/only_compile_release.sh b/scripts/core/only_compile_release.sh index 1fdcfc6..dcdd565 100755 --- a/scripts/core/only_compile_release.sh +++ b/scripts/core/only_compile_release.sh @@ -4,7 +4,8 @@ cd "../../" cd "bom" -mvn -B clean package +mvn -B -Dtdlight.build.type=legacy clean package +mvn -B -Dtdlight.build.type=standard clean package cd "../" echo "Done." diff --git a/tdlight/pom.xml b/tdlight/pom.xml index 1708f55..9a5ae2e 100644 --- a/tdlight/pom.xml +++ b/tdlight/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - tdlight-java + ${tdlight.lib.artifact.id} TDLight Java Wrapper jar @@ -14,6 +14,7 @@ UTF-8 1.0.0.0-SNAPSHOT tdlight-api-legacy + tdlight-java-8 @@ -56,7 +57,7 @@ org.slf4j slf4j-api - 2.0.3 + 2.0.5 org.reactivestreams @@ -105,19 +106,27 @@ jdk-with-sealed-interfaces - [17,) + + tdlight.build.type + standard + tdlight-api-sealed + tdlight-java jdk-with-legacy-interfaces - (,17) + + tdlight.build.type + legacy + tdlight-api-legacy + tdlight-java-8