diff --git a/README.md b/README.md index 015e917..3c1613c 100644 --- a/README.md +++ b/README.md @@ -6,30 +6,35 @@ This library is a JSON Parser built specifically for JNATS to avoid a 3rd party It has been extracted and repackaged from the JNATS library since it is also used by the [jwt.java](https://github.com/nats-io/jwt.java) library. -**Current Release**: 3.0.0   **Current Snapshot**: 3.0.1-SNAPSHOT +**Current Release**: 3.0.1   **Current Snapshot**: 3.0.2-SNAPSHOT [![License Apache 2](https://img.shields.io/badge/License-Apache2-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) -[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.nats/jnats-json/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.nats/jnats-json) -[![Javadoc](http://javadoc.io/badge/io.nats/jnats-json.svg?branch=main)](http://javadoc.io/doc/io.nats/jnats-json?branch=main) -[![Coverage Status](https://coveralls.io/repos/github/nats-io/json.java/badge.svg?branch=main)](https://coveralls.io/github/nats-io/json.java?branch=main) -[![Build Main Badge](https://github.com/nats-io/json.java/actions/workflows/build-main.yml/badge.svg?event=push)](https://github.com/nats-io/json.java/actions/workflows/build-main.yml) -[![Release Badge](https://github.com/nats-io/json.java/actions/workflows/build-release.yml/badge.svg?event=release)](https://github.com/nats-io/json.java/actions/workflows/build-release.yml) +[![Maven JDK 21](https://img.shields.io/maven-central/v/io.nats/jnats-json-jdk21)](https://mvnrepository.com/artifact/io.nats/jnats-json-jdk21) +[![Maven JDK 25](https://img.shields.io/maven-central/v/io.nats/jnats-json-jdk25)](https://mvnrepository.com/artifact/io.nats/jnats-json-jdk25) +[![Javadoc](http://javadoc.io/badge/io.nats/jnats-json-jdk21.svg?branch=main)](http://javadoc.io/doc/io.nats/jnats-json-jdk21?branch=main) +[![Coverage Status](https://coveralls.io/repos/github/nats-io/jnats.json/badge.svg?branch=main)](https://coveralls.io/github/nats-io/jnats.json?branch=main) +[![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) +[![Release Badge](https://github.com/nats-io/jnats.json/actions/workflows/build-release.yml/badge.svg?event=release)](https://github.com/nats-io/jnats.json/actions/workflows/build-release.yml) ### JDK Version This project uses Java 21 Language Level api, but builds with both Java 21 and Java 25, so creates two different artifacts. Both have the same group id `io.nats`, and the same version but have different artifact names. -* The Java 21 artifact is `jnats-json-jdk21` -* The Java 25 artifact is `jnats-json-jdk25` +* The Java 21 artifact id is `jnats-json-jdk21` +* The Java 25 artifact id is `jnats-json-jdk25` -### Using Gradle +### Dependency Management -The NATS client is available in the Maven central repository, and can be imported as a standard dependency in your `build.gradle` file: +The NATS client is available in the Maven central repository, +and can be imported as a standard dependency in your `build.gradle` or `pom.xml` file, +The examples shown use the jdk 21 version, to the jdk 25 version just change the artifact id. + +#### Gradle ```groovy dependencies { - implementation 'io.nats:jnats-json-jdk21:3.0.0' + implementation 'io.nats:jnats-json-jdk21:3.0.1' } ``` @@ -55,19 +60,17 @@ repositories { } dependencies { - implementation 'io.nats:jnats-json-jdk21:3.0.1-SNAPSHOT' + implementation 'io.nats:jnats-json-jdk21:3.0.2-SNAPSHOT' } ``` -### Using Maven - -The NATS client is available on the Maven Central Repository and can be imported as a normal dependency in your pom.xml file: +#### Maven ```xml io.nats jnats-json-jdk21 - 3.0.0 + 3.0.1 ``` @@ -101,7 +104,7 @@ If you need a snapshot version, you must enable snapshots and change your depend io.nats jnats-json-jdk21 - 3.0.1-SNAPSHOT + 3.0.2-SNAPSHOT ``` diff --git a/build.gradle b/build.gradle index ac5316e..2e8132b 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ plugins { id("signing") } -def jarVersion = "3.0.1" +def jarVersion = "3.0.2" group = 'io.nats' def isRelease = System.getenv("BUILD_EVENT") == "release"