|
4 | 4 |
|
5 | 5 | This library is a JSON Parser built specifically for JNATS to avoid a 3rd party library dependency.
|
6 | 6 |
|
7 |
| -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. |
| 7 | +It has been extracted and repackaged from the JNATS library as part of the effort to upgrade and repackage the JNATS client. |
8 | 8 |
|
9 |
| -**Current Release**: 2.0.1 **Current Snapshot**: 2.0.2-SNAPSHOT |
| 9 | +**Current Release**: 3.0.0 **Current Snapshot**: 0.0.0-SNAPSHOT |
10 | 10 |
|
11 | 11 | [](https://www.apache.org/licenses/LICENSE-2.0)
|
12 |
| -[](https://maven-badges.herokuapp.com/maven-central/io.nats/jnats-json) |
13 |
| -[](http://javadoc.io/doc/io.nats/jnats-json?branch=main) |
14 |
| -[](https://coveralls.io/github/nats-io/json.java?branch=main) |
15 |
| -[](https://github.com/nats-io/json.java/actions/workflows/build-main.yml) |
16 |
| -[](https://github.com/nats-io/json.java/actions/workflows/build-release.yml) |
| 12 | +[](https://maven-badges.herokuapp.com/maven-central/io.synadia/jnats-json) |
| 13 | +[](http://javadoc.io/doc/io.synadia/jnats-json?branch=main) |
| 14 | +[](https://coveralls.io/github/synadia-io/json.java?branch=main) |
| 15 | +[](https://github.com/synadia-io/json.java/actions/workflows/build-main.yml) |
| 16 | +[](https://github.com/synadia-io/json.java/actions/workflows/build-release.yml) |
| 17 | + |
| 18 | +### Gradle |
| 19 | + |
| 20 | +```groovy |
| 21 | +dependencies { |
| 22 | + implementation 'io.synadia:jnats-json:{major.minor.patch}' |
| 23 | +} |
| 24 | +``` |
| 25 | + |
| 26 | +If you need the latest and greatest before Maven central updates, you can use: |
| 27 | + |
| 28 | +```groovy |
| 29 | +repositories { |
| 30 | + mavenCentral() |
| 31 | + maven { |
| 32 | + url "https://repo1.maven.org/maven2/" |
| 33 | + } |
| 34 | +} |
| 35 | +``` |
| 36 | + |
| 37 | +If you need a snapshot version, you must add the url for the snapshots and change your dependency. |
| 38 | + |
| 39 | +```groovy |
| 40 | +repositories { |
| 41 | + mavenCentral() |
| 42 | + maven { |
| 43 | + url "https://central.sonatype.com/repository/maven-snapshots/" |
| 44 | + } |
| 45 | +} |
| 46 | +
|
| 47 | +dependencies { |
| 48 | + implementation 'io.synadia:jnats-json:{major.minor.patch}-SNAPSHOT' |
| 49 | +} |
| 50 | +``` |
| 51 | + |
| 52 | +### Maven |
| 53 | + |
| 54 | +```xml |
| 55 | +<dependency> |
| 56 | + <groupId>io.synadia</groupId> |
| 57 | + <artifactId>jnats-json</artifactId> |
| 58 | + <version>{major.minor.patch}</version> |
| 59 | +</dependency> |
| 60 | +``` |
| 61 | + |
| 62 | +If you need the absolute latest, before it propagates to maven central, you can use the repository: |
| 63 | + |
| 64 | +```xml |
| 65 | +<repositories> |
| 66 | + <repository> |
| 67 | + <id>sonatype releases</id> |
| 68 | + <url>https://repo1.maven.org/maven2</url> |
| 69 | + <releases> |
| 70 | + <enabled>true</enabled> |
| 71 | + </releases> |
| 72 | + </repository> |
| 73 | +</repositories> |
| 74 | +``` |
| 75 | + |
| 76 | +If you need a snapshot version, you must enable snapshots and change your dependency. |
| 77 | + |
| 78 | +```xml |
| 79 | +<repositories> |
| 80 | + <repository> |
| 81 | + <id>sonatype snapshots</id> |
| 82 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 83 | + <snapshots> |
| 84 | + <enabled>true</enabled> |
| 85 | + </snapshots> |
| 86 | + </repository> |
| 87 | +</repositories> |
| 88 | + |
| 89 | +<dependency> |
| 90 | + <groupId>io.synadia</groupId> |
| 91 | + <artifactId>jnats-json</artifactId> |
| 92 | + <version>{major.minor.patch}-SNAPSHOT</version> |
| 93 | +</dependency> |
| 94 | +``` |
17 | 95 |
|
18 | 96 |
|
19 | 97 | ## License
|
|
0 commit comments