@@ -11,30 +11,34 @@ It has been extracted and repackaged from the JNATS library since it is also use
1111
1212[ ![ Build Main Badge] ( https://github.com/nats-io/jnats-json/actions/workflows/build-main.yml/badge.svg?event=push )] ( https://github.com/nats-io/jnats-json/actions/workflows/build-main.yml )
1313[ ![ Coverage Status] ( https://coveralls.io/repos/github/nats-io/jnats-json/badge?branch=main )] ( https://coveralls.io/github/nats-io/jnats-json?branch=main )
14- [ ![ Maven JDK 21] ( https://img.shields.io/maven-central/v/io.nats/jnats-json-jdk21 ?label=maven-central-jdk21 )] ( https://mvnrepository.com/artifact/io.nats/jnats-json-jdk21 )
14+ [ ![ Maven JDK 21] ( https://img.shields.io/maven-central/v/io.nats/jnats-json?label=maven-central )] ( https://mvnrepository.com/artifact/io.nats/jnats-json )
1515[ ![ Maven JDK 25] ( https://img.shields.io/maven-central/v/io.nats/jnats-json-jdk25?label=maven-central-jdk25 )] ( https://mvnrepository.com/artifact/io.nats/jnats-json-jdk25 )
16- [ ![ Javadoc] ( http://javadoc.io/badge/io.nats/jnats-json-jdk21 .svg?branch=main )] ( http://javadoc.io/doc/io.nats/jnats-json-jdk21 ?branch=main )
16+ [ ![ Javadoc] ( http://javadoc.io/badge/io.nats/jnats-json.svg?branch=main )] ( http://javadoc.io/doc/io.nats/jnats-json?branch=main )
1717[ ![ License Apache 2] ( https://img.shields.io/badge/License-Apache2-blue )] ( https://www.apache.org/licenses/LICENSE-2.0 )
1818
1919### JDK Version
2020
21- This project uses Java 21 Language Level api, but builds with both Java 21 and Java 25, so creates two different artifacts.
22- Both have the same group id ` io.nats ` , and the same version but have different artifact names.
21+ This project uses Java 8 Language Level api, but builds jars compiled with and targeted for Java 8, 17, 21 and 25.
22+ It creates different artifacts for each. All have the same group id ` io.nats ` and the same version but have different artifact names.
2323
24- * The Java 21 artifact id is ` jnats-json-jdk21 `
25- * The Java 25 artifact id is ` jnats-json-jdk25 `
24+ | Java Target Level | artifact id |
25+ | :-------------------:| ------------------|
26+ | 8 | jnats-json |
27+ | 17 | jnats-json-jdk17 |
28+ | 21 | jnats-json-jdk21 |
29+ | 25 | jnats-json-jdk25 |
2630
2731### Dependency Management
2832
2933The NATS client is available in the Maven central repository,
3034and can be imported as a standard dependency in your ` build.gradle ` or ` pom.xml ` file,
31- The examples shown use the jdk 21 version, to the jdk 25 version just change the artifact id.
35+ The examples shown use the Jdk 8 version. To use other versions, change the artifact id.
3236
3337#### Gradle
3438
3539``` groovy
3640dependencies {
37- implementation 'io.nats:jnats-json-jdk21 :3.0.3'
41+ implementation 'io.nats:jnats-json:3.0.3'
3842}
3943```
4044
@@ -60,7 +64,7 @@ repositories {
6064}
6165
6266dependencies {
63- implementation 'io.nats:jnats-json-jdk21 :3.0.4-SNAPSHOT'
67+ implementation 'io.nats:jnats-json:3.0.4-SNAPSHOT'
6468}
6569```
6670
@@ -69,7 +73,7 @@ dependencies {
6973``` xml
7074<dependency >
7175 <groupId >io.nats</groupId >
72- <artifactId >jnats-json-jdk21 </artifactId >
76+ <artifactId >jnats-json</artifactId >
7377 <version >3.0.3</version >
7478</dependency >
7579```
@@ -103,7 +107,7 @@ If you need a snapshot version, you must enable snapshots and change your depend
103107
104108<dependency >
105109 <groupId >io.nats</groupId >
106- <artifactId >jnats-json-jdk21 </artifactId >
110+ <artifactId >jnats-json</artifactId >
107111 <version >3.0.4-SNAPSHOT</version >
108112</dependency >
109113```
0 commit comments