mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-10-22 18:28:51 +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>
42 lines
1.6 KiB
Groovy
42 lines
1.6 KiB
Groovy
apply plugin: 'io.spring.convention.spring-module'
|
|
|
|
dependencies {
|
|
management platform(project(":spring-security-dependencies"))
|
|
api project(':spring-security-core')
|
|
api 'org.springframework:spring-beans'
|
|
api 'org.springframework:spring-context'
|
|
api 'org.springframework:spring-core'
|
|
api 'org.springframework:spring-tx'
|
|
|
|
optional 'com.fasterxml.jackson.core:jackson-databind'
|
|
optional 'ldapsdk:ldapsdk'
|
|
optional "com.unboundid:unboundid-ldapsdk"
|
|
optional 'tools.jackson.core:jackson-databind'
|
|
api ('org.springframework.ldap:spring-ldap-core') {
|
|
exclude(group: 'commons-logging', module: 'commons-logging')
|
|
exclude(group: 'org.springframework', module: 'spring-beans')
|
|
exclude(group: 'org.springframework', module: 'spring-core')
|
|
exclude(group: 'org.springframework', module: 'spring-tx')
|
|
exclude(group: 'org.springframework.data', module: 'spring-data-commons')
|
|
}
|
|
|
|
testImplementation project(path : ':spring-security-core', configuration : 'tests')
|
|
testImplementation project(":spring-security-test")
|
|
testImplementation 'org.slf4j:slf4j-api'
|
|
testImplementation "org.assertj:assertj-core"
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api"
|
|
testImplementation "org.junit.jupiter:junit-jupiter-params"
|
|
testImplementation "org.junit.jupiter:junit-jupiter-engine"
|
|
testImplementation "org.mockito:mockito-core"
|
|
testImplementation "org.mockito:mockito-junit-jupiter"
|
|
testImplementation "org.springframework:spring-test"
|
|
testImplementation 'org.skyscreamer:jsonassert'
|
|
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
}
|
|
|
|
integrationTest {
|
|
// exclude('**/OpenLDAPIntegrationTestSuite.class')
|
|
maxParallelForks = 1
|
|
}
|