Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 20 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand All @@ -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
<dependency>
<groupId>io.nats</groupId>
<artifactId>jnats-json-jdk21</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>
</dependency>
```

Expand Down Expand Up @@ -101,7 +104,7 @@ If you need a snapshot version, you must enable snapshots and change your depend
<dependency>
<groupId>io.nats</groupId>
<artifactId>jnats-json-jdk21</artifactId>
<version>3.0.1-SNAPSHOT</version>
<version>3.0.2-SNAPSHOT</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading