Skip to content

Commit 9c0fb75

Browse files
authored
Merge pull request #22 from nats-io/start-3-0-2
Start 3.0.2
2 parents 6f2aa19 + fce3160 commit 9c0fb75

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

README.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,35 @@ This library is a JSON Parser built specifically for JNATS to avoid a 3rd party
66

77
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.
88

9-
**Current Release**: 3.0.0   **Current Snapshot**: 3.0.1-SNAPSHOT
9+
**Current Release**: 3.0.1   **Current Snapshot**: 3.0.2-SNAPSHOT
1010

1111
[![License Apache 2](https://img.shields.io/badge/License-Apache2-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
12-
[![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)
13-
[![Javadoc](http://javadoc.io/badge/io.nats/jnats-json.svg?branch=main)](http://javadoc.io/doc/io.nats/jnats-json?branch=main)
14-
[![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)
15-
[![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)
16-
[![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)
12+
[![Maven JDK 21](https://img.shields.io/maven-central/v/io.nats/jnats-json-jdk21)](https://mvnrepository.com/artifact/io.nats/jnats-json-jdk21)
13+
[![Maven JDK 25](https://img.shields.io/maven-central/v/io.nats/jnats-json-jdk25)](https://mvnrepository.com/artifact/io.nats/jnats-json-jdk25)
14+
[![Javadoc](http://javadoc.io/badge/io.nats/jnats-json-jdk21.svg?branch=main)](http://javadoc.io/doc/io.nats/jnats-json-jdk21?branch=main)
15+
[![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)
16+
[![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)
17+
[![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)
1718

1819
### JDK Version
1920

2021
This project uses Java 21 Language Level api, but builds with both Java 21 and Java 25, so creates two different artifacts.
2122
Both have the same group id `io.nats`, and the same version but have different artifact names.
2223

23-
* The Java 21 artifact is `jnats-json-jdk21`
24-
* The Java 25 artifact is `jnats-json-jdk25`
24+
* The Java 21 artifact id is `jnats-json-jdk21`
25+
* The Java 25 artifact id is `jnats-json-jdk25`
2526

26-
### Using Gradle
27+
### Dependency Management
2728

28-
The NATS client is available in the Maven central repository, and can be imported as a standard dependency in your `build.gradle` file:
29+
The NATS client is available in the Maven central repository,
30+
and 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.
32+
33+
#### Gradle
2934

3035
```groovy
3136
dependencies {
32-
implementation 'io.nats:jnats-json-jdk21:3.0.0'
37+
implementation 'io.nats:jnats-json-jdk21:3.0.1'
3338
}
3439
```
3540

@@ -55,19 +60,17 @@ repositories {
5560
}
5661
5762
dependencies {
58-
implementation 'io.nats:jnats-json-jdk21:3.0.1-SNAPSHOT'
63+
implementation 'io.nats:jnats-json-jdk21:3.0.2-SNAPSHOT'
5964
}
6065
```
6166

62-
### Using Maven
63-
64-
The NATS client is available on the Maven Central Repository and can be imported as a normal dependency in your pom.xml file:
67+
#### Maven
6568

6669
```xml
6770
<dependency>
6871
<groupId>io.nats</groupId>
6972
<artifactId>jnats-json-jdk21</artifactId>
70-
<version>3.0.0</version>
73+
<version>3.0.1</version>
7174
</dependency>
7275
```
7376

@@ -101,7 +104,7 @@ If you need a snapshot version, you must enable snapshots and change your depend
101104
<dependency>
102105
<groupId>io.nats</groupId>
103106
<artifactId>jnats-json-jdk21</artifactId>
104-
<version>3.0.1-SNAPSHOT</version>
107+
<version>3.0.2-SNAPSHOT</version>
105108
</dependency>
106109
```
107110

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins {
1010
id("signing")
1111
}
1212

13-
def jarVersion = "3.0.1"
13+
def jarVersion = "3.0.2"
1414
group = 'io.nats'
1515

1616
def isRelease = System.getenv("BUILD_EVENT") == "release"

0 commit comments

Comments
 (0)