Skip to content

Commit e4e82d8

Browse files
committed
Add UnboundId Compatibility Check
Closes gh-15400
1 parent 161b0f3 commit e4e82d8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ com-nimbusds-oauth2-oidc-sdk = "com.nimbusds:oauth2-oidc-sdk:9.43.4"
2525
com-squareup-okhttp3-mockwebserver = { module = "com.squareup.okhttp3:mockwebserver", version.ref = "com-squareup-okhttp3" }
2626
com-squareup-okhttp3-okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "com-squareup-okhttp3" }
2727
com-unboundid-unboundid-ldapsdk = "com.unboundid:unboundid-ldapsdk:6.0.11"
28+
com-unboundid-unboundid-ldapsdk7 = "com.unboundid:unboundid-ldapsdk:7.0.1"
2829
commons-collections = "commons-collections:commons-collections:3.2.2"
2930
io-micrometer-micrometer-observation = "io.micrometer:micrometer-observation:1.12.8"
3031
io-mockk = "io.mockk:mockk:1.13.11"

ldap/spring-security-ldap.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
apply plugin: 'io.spring.convention.spring-module'
22

3+
configurations {
4+
unboundid7 { extendsFrom(optional, tests) }
5+
}
6+
37
dependencies {
48
management platform(project(":spring-security-dependencies"))
59
api project(':spring-security-core')
@@ -35,9 +39,20 @@ dependencies {
3539
testImplementation "org.mockito:mockito-junit-jupiter"
3640
testImplementation "org.springframework:spring-test"
3741
testImplementation 'org.skyscreamer:jsonassert'
42+
unboundid7 libs.com.unboundid.unboundid.ldapsdk7
43+
3844
}
3945

4046
integrationTest {
4147
// exclude('**/OpenLDAPIntegrationTestSuite.class')
4248
maxParallelForks = 1
4349
}
50+
51+
tasks.register("unboundid7Test", Test) {
52+
useJUnitPlatform()
53+
classpath = sourceSets.test.output + sourceSets.main.output + configurations.unboundid7
54+
}
55+
56+
tasks.named("check") {
57+
dependsOn unboundid7Test
58+
}

0 commit comments

Comments
 (0)