Skip to content

Commit 21e31a1

Browse files
committed
Add com.sun.jndi.ldap Module
- Needed for importing com.sun.jndi.ldap in tests
1 parent 4a79cb5 commit 21e31a1

File tree

10 files changed

+50
-0
lines changed

10 files changed

+50
-0
lines changed

core-tiger/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ dependencies {
1313
testImplementation "org.easymock:easymock"
1414
testImplementation "org.assertj:assertj-core"
1515
}
16+
17+
compileTestJava {
18+
targetCompatibility = JavaVersion.VERSION_11
19+
}

core/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,13 @@ dependencies {
4444
testImplementation "org.assertj:assertj-core"
4545
testImplementation "com.unboundid:unboundid-ldapsdk"
4646
}
47+
48+
compileTestJava {
49+
targetCompatibility = JavaVersion.VERSION_11
50+
doFirst {
51+
options.compilerArgs = [
52+
'--add-exports', 'java.naming/com.sun.jndi.ldap=ALL-UNNAMED'
53+
]
54+
}
55+
}
56+

ldif/ldif-core/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ dependencies {
1717
exclude group: 'com.sun.jmx'
1818
}
1919
}
20+
21+
compileTestJava {
22+
targetCompatibility = JavaVersion.VERSION_11
23+
}

odm/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,8 @@ dependencies {
3636
testImplementation "org.apache.directory.shared:shared-ldap"
3737
testImplementation platform('org.junit:junit-bom')
3838
testImplementation "org.junit.vintage:junit-vintage-engine"
39+
}
40+
41+
compileTestJava {
42+
targetCompatibility = JavaVersion.VERSION_11
3943
}

samples/boot/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ dependencies {
1818
testImplementation 'org.springframework.security:spring-security-test'
1919
}
2020

21+
compileTestJava {
22+
targetCompatibility = JavaVersion.VERSION_11
23+
}
24+
2125
tasks.named('test') {
2226
useJUnitPlatform()
2327
}

samples/odm/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ dependencies {
2424
"junit:junit",
2525
"org.assertj:assertj-core"
2626
}
27+
28+
compileTestJava {
29+
targetCompatibility = JavaVersion.VERSION_11
30+
}

samples/plain/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ dependencies {
2424
"junit:junit",
2525
"org.assertj:assertj-core"
2626
}
27+
28+
compileTestJava {
29+
targetCompatibility = JavaVersion.VERSION_11
30+
}

sandbox/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,12 @@ dependencies {
1515
testImplementation "gsbase:gsbase"
1616
testImplementation "org.assertj:assertj-core"
1717
}
18+
19+
compileTestJava {
20+
targetCompatibility = JavaVersion.VERSION_11
21+
doFirst {
22+
options.compilerArgs = [
23+
'--add-exports', 'java.naming/com.sun.jndi.ldap=ALL-UNNAMED'
24+
]
25+
}
26+
}

test-support/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ dependencies {
2929
testImplementation "org.junit.vintage:junit-vintage-engine"
3030
testImplementation "org.assertj:assertj-core"
3131
}
32+
33+
compileTestJava {
34+
targetCompatibility = JavaVersion.VERSION_11
35+
}

test/integration-tests/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ idea {
8383
}
8484
}
8585

86+
compileTestJava {
87+
targetCompatibility = JavaVersion.VERSION_11
88+
}
8689

8790
test {
8891
systemProperties = System.properties

0 commit comments

Comments
 (0)