mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-10-22 02:08:48 +00:00
This commit adds support for Jackson 3 which has the following major differences with the Jackson 2 one: - jackson subpackage instead of jackson2 - Jackson type prefix instead of Jackson2 - JsonMapper instead of ObjectMapper - For configuration, JsonMapper.Builder instead of ObjectMapper since the latter is now immutable - Remove custom support for unmodifiable collections - Use safe default typing via a PolymorphicTypeValidator Jackson 3 changes compared to Jackson 2 are documented in https://cowtowncoder.medium.com/jackson-3-0-0-ga-released-1f669cda529a and https://github.com/FasterXML/jackson/blob/main/jackson3/MIGRATING_TO_JACKSON_3.md. This commit does not cover webauthn which is a special case (uses jackson sub-package for Jackson 2 support) which will be handled in a distinct commit. See gh-17832 Signed-off-by: Sébastien Deleuze <sdeleuze@users.noreply.github.com>
36 lines
1.4 KiB
Groovy
36 lines
1.4 KiB
Groovy
apply plugin: 'io.spring.convention.spring-module'
|
|
|
|
dependencies {
|
|
management platform(project(":spring-security-dependencies"))
|
|
|
|
api project(":spring-security-web")
|
|
api project(":spring-security-oauth2-core")
|
|
api project(":spring-security-oauth2-jose")
|
|
api project(":spring-security-oauth2-resource-server")
|
|
api ("org.springframework:spring-core") {
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
}
|
|
api "com.nimbusds:nimbus-jose-jwt"
|
|
api 'tools.jackson.core:jackson-databind'
|
|
|
|
optional "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
|
|
optional "org.springframework:spring-jdbc"
|
|
optional "com.fasterxml.jackson.core:jackson-databind"
|
|
|
|
testImplementation project(":spring-security-test")
|
|
testImplementation project(path : ':spring-security-oauth2-jose', configuration : 'tests')
|
|
testImplementation "org.springframework:spring-webmvc"
|
|
testImplementation "org.bouncycastle:bcpkix-jdk18on"
|
|
testImplementation "org.bouncycastle:bcprov-jdk18on"
|
|
testImplementation "org.junit.jupiter:junit-jupiter"
|
|
testImplementation "org.assertj:assertj-core"
|
|
testImplementation "org.mockito:mockito-core"
|
|
testImplementation "com.jayway.jsonpath:json-path"
|
|
testImplementation "com.squareup.okhttp3:mockwebserver"
|
|
|
|
testRuntimeOnly "org.hsqldb:hsqldb"
|
|
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
|
|
|
|
provided "jakarta.servlet:jakarta.servlet-api"
|
|
}
|