Add a dedicated java 8 package, separate the standard version

This commit is contained in:
Andrea Cavalli 2023-01-02 01:02:44 +01:00
parent bfc37fb895
commit f5582d388a
5 changed files with 21 additions and 10 deletions

View File

@ -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:
<!-- Add the following dependencies -->
<dependency>
<groupId>it.tdlight</groupId>
<artifactId>tdlight-java</artifactId>
<artifactId>tdlight-java</artifactId> <!-- Use tdlight-java-8 if you are using java 8 to 16 -->
<!-- don't specify the version here -->
</dependency>
<dependency>
@ -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, ...
}

View File

@ -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."

View File

@ -4,7 +4,7 @@
cd "../../"
cd "bom"
mvn -B clean deploy
mvn -B clean deploy -Dtdlight.build.type=standard
cd "../"
echo "Done."

View File

@ -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."

View File

@ -1,7 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>tdlight-java</artifactId>
<artifactId>${tdlight.lib.artifact.id}</artifactId>
<name>TDLight Java Wrapper</name>
<packaging>jar</packaging>
<parent>
@ -14,6 +14,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>1.0.0.0-SNAPSHOT</revision>
<tdlight.api.artifact.id>tdlight-api-legacy</tdlight.api.artifact.id>
<tdlight.lib.artifact.id>tdlight-java-8</tdlight.lib.artifact.id>
</properties>
<repositories>
<repository>
@ -56,7 +57,7 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.3</version>
<version>2.0.5</version>
</dependency>
<dependency>
<groupId>org.reactivestreams</groupId>
@ -105,19 +106,27 @@
<profile>
<id>jdk-with-sealed-interfaces</id>
<activation>
<jdk>[17,)</jdk>
<property>
<name>tdlight.build.type</name>
<value>standard</value>
</property>
</activation>
<properties>
<tdlight.api.artifact.id>tdlight-api-sealed</tdlight.api.artifact.id>
<tdlight.lib.artifact.id>tdlight-java</tdlight.lib.artifact.id>
</properties>
</profile>
<profile>
<id>jdk-with-legacy-interfaces</id>
<activation>
<jdk>(,17)</jdk>
<property>
<name>tdlight.build.type</name>
<value>legacy</value>
</property>
</activation>
<properties>
<tdlight.api.artifact.id>tdlight-api-legacy</tdlight.api.artifact.id>
<tdlight.lib.artifact.id>tdlight-java-8</tdlight.lib.artifact.id>
</properties>
</profile>
</profiles>