Add a dedicated java 8 package, separate the standard version
This commit is contained in:
parent
bfc37fb895
commit
f5582d388a
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
## 💻 Supported platforms
|
## 💻 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
|
**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 -->
|
<!-- Add the following dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>it.tdlight</groupId>
|
<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 -->
|
<!-- don't specify the version here -->
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -114,7 +114,7 @@ dependencies {
|
|||||||
implementation platform('it.tdlight:tdlight-java-bom:VERSION')
|
implementation platform('it.tdlight:tdlight-java-bom:VERSION')
|
||||||
|
|
||||||
// do not specify the versions on the dependencies below!
|
// 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'
|
implementation 'it.tdlight:tdlight-natives-linux-amd64'
|
||||||
// Include other native versions that you want, for example for windows, osx, ...
|
// Include other native versions that you want, for example for windows, osx, ...
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,8 @@ fi
|
|||||||
cd "../../"
|
cd "../../"
|
||||||
|
|
||||||
cd "bom"
|
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 "../"
|
cd "../"
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
cd "../../"
|
cd "../../"
|
||||||
|
|
||||||
cd "bom"
|
cd "bom"
|
||||||
mvn -B clean deploy
|
mvn -B clean deploy -Dtdlight.build.type=standard
|
||||||
cd "../"
|
cd "../"
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
cd "../../"
|
cd "../../"
|
||||||
|
|
||||||
cd "bom"
|
cd "bom"
|
||||||
mvn -B clean package
|
mvn -B -Dtdlight.build.type=legacy clean package
|
||||||
|
mvn -B -Dtdlight.build.type=standard clean package
|
||||||
cd "../"
|
cd "../"
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<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">
|
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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>tdlight-java</artifactId>
|
<artifactId>${tdlight.lib.artifact.id}</artifactId>
|
||||||
<name>TDLight Java Wrapper</name>
|
<name>TDLight Java Wrapper</name>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<parent>
|
<parent>
|
||||||
@ -14,6 +14,7 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<revision>1.0.0.0-SNAPSHOT</revision>
|
<revision>1.0.0.0-SNAPSHOT</revision>
|
||||||
<tdlight.api.artifact.id>tdlight-api-legacy</tdlight.api.artifact.id>
|
<tdlight.api.artifact.id>tdlight-api-legacy</tdlight.api.artifact.id>
|
||||||
|
<tdlight.lib.artifact.id>tdlight-java-8</tdlight.lib.artifact.id>
|
||||||
</properties>
|
</properties>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
@ -56,7 +57,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>slf4j-api</artifactId>
|
<artifactId>slf4j-api</artifactId>
|
||||||
<version>2.0.3</version>
|
<version>2.0.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.reactivestreams</groupId>
|
<groupId>org.reactivestreams</groupId>
|
||||||
@ -105,19 +106,27 @@
|
|||||||
<profile>
|
<profile>
|
||||||
<id>jdk-with-sealed-interfaces</id>
|
<id>jdk-with-sealed-interfaces</id>
|
||||||
<activation>
|
<activation>
|
||||||
<jdk>[17,)</jdk>
|
<property>
|
||||||
|
<name>tdlight.build.type</name>
|
||||||
|
<value>standard</value>
|
||||||
|
</property>
|
||||||
</activation>
|
</activation>
|
||||||
<properties>
|
<properties>
|
||||||
<tdlight.api.artifact.id>tdlight-api-sealed</tdlight.api.artifact.id>
|
<tdlight.api.artifact.id>tdlight-api-sealed</tdlight.api.artifact.id>
|
||||||
|
<tdlight.lib.artifact.id>tdlight-java</tdlight.lib.artifact.id>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>jdk-with-legacy-interfaces</id>
|
<id>jdk-with-legacy-interfaces</id>
|
||||||
<activation>
|
<activation>
|
||||||
<jdk>(,17)</jdk>
|
<property>
|
||||||
|
<name>tdlight.build.type</name>
|
||||||
|
<value>legacy</value>
|
||||||
|
</property>
|
||||||
</activation>
|
</activation>
|
||||||
<properties>
|
<properties>
|
||||||
<tdlight.api.artifact.id>tdlight-api-legacy</tdlight.api.artifact.id>
|
<tdlight.api.artifact.id>tdlight-api-legacy</tdlight.api.artifact.id>
|
||||||
|
<tdlight.lib.artifact.id>tdlight-java-8</tdlight.lib.artifact.id>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user