mirror of https://github.com/jwtk/jjwt.git
Released 0.12.2 (#856)
* Released 0.12.2 * [maven-release-plugin] prepare release 0.12.2 * [maven-release-plugin] prepare for next development iteration
This commit is contained in:
parent
a7d3d3197c
commit
59c9df1231
12
CHANGELOG.md
12
CHANGELOG.md
|
@ -1,5 +1,17 @@
|
|||
## Release Notes
|
||||
|
||||
### 0.12.2
|
||||
|
||||
This is a follow-up release to finalize the work in 0.12.1 that tried to fix a reflection scope problem
|
||||
on >= JDK 17. The 0.12.1 fix worked, but only if the importing project or application did _not_ have its own
|
||||
`module-info.java` file.
|
||||
|
||||
This release removes that reflection code entirely in favor of a JJWT-native implementation, eliminating JPMS
|
||||
module (scope) problems on >= JDK 17. As such, `--add-opens` flags are no longer required to use JJWT.
|
||||
|
||||
The fix has been tested up through JDK 21 in a separate application environment (out of JJWT's codebase) to assert
|
||||
expected functionality in a 'clean room' environment in a project both with and without `module-info.java` usage.
|
||||
|
||||
### 0.12.1
|
||||
|
||||
Enabled reflective access on JDK 17+ to `java.io.ByteArrayInputStream` and `sun.security.util.KeyUtil` for
|
||||
|
|
26
README.md
26
README.md
|
@ -540,18 +540,18 @@ If you're building a (non-Android) JDK project, you will want to define the foll
|
|||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-api</artifactId>
|
||||
<version>0.12.1</version>
|
||||
<version>0.12.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-impl</artifactId>
|
||||
<version>0.12.1</version>
|
||||
<version>0.12.2</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-jackson</artifactId> <!-- or jjwt-gson if Gson is preferred -->
|
||||
<version>0.12.1</version>
|
||||
<version>0.12.2</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<!-- Uncomment this next dependency if you are using:
|
||||
|
@ -574,9 +574,9 @@ If you're building a (non-Android) JDK project, you will want to define the foll
|
|||
|
||||
```groovy
|
||||
dependencies {
|
||||
implementation 'io.jsonwebtoken:jjwt-api:0.12.1'
|
||||
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.1'
|
||||
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.1' // or 'io.jsonwebtoken:jjwt-gson:0.12.1' for gson
|
||||
implementation 'io.jsonwebtoken:jjwt-api:0.12.2'
|
||||
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.2'
|
||||
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.2' // or 'io.jsonwebtoken:jjwt-gson:0.12.2' for gson
|
||||
/*
|
||||
Uncomment this next dependency if you are using:
|
||||
- JDK 10 or earlier, and you want to use RSASSA-PSS (PS256, PS384, PS512) signature algorithms.
|
||||
|
@ -601,9 +601,9 @@ Add the dependencies to your project:
|
|||
|
||||
```groovy
|
||||
dependencies {
|
||||
api('io.jsonwebtoken:jjwt-api:0.12.1')
|
||||
runtimeOnly('io.jsonwebtoken:jjwt-impl:0.12.1')
|
||||
runtimeOnly('io.jsonwebtoken:jjwt-orgjson:0.12.1') {
|
||||
api('io.jsonwebtoken:jjwt-api:0.12.2')
|
||||
runtimeOnly('io.jsonwebtoken:jjwt-impl:0.12.2')
|
||||
runtimeOnly('io.jsonwebtoken:jjwt-orgjson:0.12.2') {
|
||||
exclude(group: 'org.json', module: 'json') //provided by Android natively
|
||||
}
|
||||
/*
|
||||
|
@ -2952,7 +2952,7 @@ scope which is the typical JJWT default). That is:
|
|||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-jackson</artifactId>
|
||||
<version>0.12.1</version>
|
||||
<version>0.12.2</version>
|
||||
<scope>compile</scope> <!-- Not runtime -->
|
||||
</dependency>
|
||||
```
|
||||
|
@ -2961,7 +2961,7 @@ scope which is the typical JJWT default). That is:
|
|||
|
||||
```groovy
|
||||
dependencies {
|
||||
implementation 'io.jsonwebtoken:jjwt-jackson:0.12.1'
|
||||
implementation 'io.jsonwebtoken:jjwt-jackson:0.12.2'
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -3069,7 +3069,7 @@ scope which is the typical JJWT default). That is:
|
|||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-gson</artifactId>
|
||||
<version>0.12.1</version>
|
||||
<version>0.12.2</version>
|
||||
<scope>compile</scope> <!-- Not runtime -->
|
||||
</dependency>
|
||||
```
|
||||
|
@ -3078,7 +3078,7 @@ scope which is the typical JJWT default). That is:
|
|||
|
||||
```groovy
|
||||
dependencies {
|
||||
implementation 'io.jsonwebtoken:jjwt-gson:0.12.1'
|
||||
implementation 'io.jsonwebtoken:jjwt-gson:0.12.2'
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<parent>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-root</artifactId>
|
||||
<version>0.12.2-SNAPSHOT</version>
|
||||
<version>0.12.3-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<parent>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-root</artifactId>
|
||||
<version>0.12.2-SNAPSHOT</version>
|
||||
<version>0.12.3-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<parent>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-root</artifactId>
|
||||
<version>0.12.2-SNAPSHOT</version>
|
||||
<version>0.12.3-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<parent>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-root</artifactId>
|
||||
<version>0.12.2-SNAPSHOT</version>
|
||||
<version>0.12.3-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<parent>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-root</artifactId>
|
||||
<version>0.12.2-SNAPSHOT</version>
|
||||
<version>0.12.3-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<parent>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-root</artifactId>
|
||||
<version>0.12.2-SNAPSHOT</version>
|
||||
<version>0.12.3-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import java.io.IOException;
|
|||
* Allows read access to the internal byte array, avoiding the need copy/extract to a
|
||||
* {@link java.io.ByteArrayOutputStream}.
|
||||
*
|
||||
* @since JJWT_RELEASE_VERSION
|
||||
* @since 0.12.2
|
||||
*/
|
||||
public final class BytesInputStream extends ByteArrayInputStream {
|
||||
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -19,7 +19,7 @@
|
|||
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-root</artifactId>
|
||||
<version>0.12.2-SNAPSHOT</version>
|
||||
<version>0.12.3-SNAPSHOT</version>
|
||||
<name>JJWT</name>
|
||||
<description>JSON Web Token support for the JVM and Android</description>
|
||||
<packaging>pom</packaging>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<parent>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-root</artifactId>
|
||||
<version>0.12.2-SNAPSHOT</version>
|
||||
<version>0.12.3-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
|
Loading…
Reference in New Issue