@@ -19,6 +19,8 @@ dependencies {
19
19
implementation " org.springframework:spring-tx"
20
20
implementation " org.slf4j:slf4j-api"
21
21
22
+ provided " com.sun:ldapbp:1.0"
23
+
22
24
optional " org.springframework:spring-context"
23
25
optional " org.springframework:spring-jdbc"
24
26
optional " org.springframework:spring-orm"
@@ -28,7 +30,8 @@ dependencies {
28
30
optional " org.apache.commons:commons-pool2"
29
31
implementation ' jakarta.xml.bind:jakarta.xml.bind-api'
30
32
31
- provided " com.sun:ldapbp:1.0"
33
+ testImplementation platform(' org.junit:junit-bom' )
34
+ testImplementation " org.junit.vintage:junit-vintage-engine"
32
35
33
36
testImplementation " junit:junit"
34
37
testImplementation " commons-lang:commons-lang"
@@ -37,4 +40,17 @@ dependencies {
37
40
testImplementation " org.mockito:mockito-inline"
38
41
testImplementation " org.springframework:spring-test"
39
42
testImplementation " org.assertj:assertj-core"
43
+ testImplementation " com.unboundid:unboundid-ldapsdk"
40
44
}
45
+
46
+ compileTestJava {
47
+ doFirst {
48
+ options. compilerArgs = [
49
+ ' --add-exports' , ' java.naming/com.sun.jndi.ldap=ALL-UNNAMED'
50
+ ]
51
+ }
52
+ }
53
+
54
+ test {
55
+ jvmArgs ' --add-exports' , ' java.naming/com.sun.jndi.ldap=ALL-UNNAMED'
56
+ }
0 commit comments