- changed status to resolved
Upgrade json-smart version
Issue #212
resolved
I found some incompatibility at runtime between spring-boot-test in web environment and nimbus JOSE due to the following shared dependency :
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
Caused by: java.lang.ClassNotFoundException: net.minidev.json.writer.JsonReaderI
Seems like nimbus JOSE use a too old version (1.3.1) in respect of Spring-test (2.2.1). Forcing 2.2.1 seems to work fine with JOSE in my case
parent-pom :
<spring-boot.version>1.5.2.RELEASE</spring-boot.version>
<dependency>
<!-- Import dependency management from Spring Boot -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
child pom:
<dependency>
<groupId>com.nimbusds</groupId>
<artifactId>nimbus-jose-jwt</artifactId>
<exclusions>
<exclusion>
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
Comments (4)
-
-
Issue
#202was marked as a duplicate of this issue. -
reporter @vdzhuvinov great !! Thanks you !
-
- Log in to comment
Thank you for sharing this.
In commit 822dc9b upgraded JSON Smart dependency to support version range from 1.3.1 to 2.3.
Will be released as v4.35 later today.