Skip to content

Commit

Permalink
Add com.sun.jndi.ldap Module
Browse files Browse the repository at this point in the history
- Needed for importing com.sun.jndi.ldap in tests
  • Loading branch information
jzheaux committed Mar 3, 2022
1 parent 4a79cb5 commit 21e31a1
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core-tiger/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ dependencies {
testImplementation "org.easymock:easymock"
testImplementation "org.assertj:assertj-core"
}

compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}
10 changes: 10 additions & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,13 @@ dependencies {
testImplementation "org.assertj:assertj-core"
testImplementation "com.unboundid:unboundid-ldapsdk"
}

compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
doFirst {
options.compilerArgs = [
'--add-exports', 'java.naming/com.sun.jndi.ldap=ALL-UNNAMED'
]
}
}

4 changes: 4 additions & 0 deletions ldif/ldif-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ dependencies {
exclude group: 'com.sun.jmx'
}
}

compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}
4 changes: 4 additions & 0 deletions odm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ dependencies {
testImplementation "org.apache.directory.shared:shared-ldap"
testImplementation platform('org.junit:junit-bom')
testImplementation "org.junit.vintage:junit-vintage-engine"
}

compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}
4 changes: 4 additions & 0 deletions samples/boot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ dependencies {
testImplementation 'org.springframework.security:spring-security-test'
}

compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}

tasks.named('test') {
useJUnitPlatform()
}
4 changes: 4 additions & 0 deletions samples/odm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ dependencies {
"junit:junit",
"org.assertj:assertj-core"
}

compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}
4 changes: 4 additions & 0 deletions samples/plain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ dependencies {
"junit:junit",
"org.assertj:assertj-core"
}

compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}
9 changes: 9 additions & 0 deletions sandbox/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@ dependencies {
testImplementation "gsbase:gsbase"
testImplementation "org.assertj:assertj-core"
}

compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
doFirst {
options.compilerArgs = [
'--add-exports', 'java.naming/com.sun.jndi.ldap=ALL-UNNAMED'
]
}
}
4 changes: 4 additions & 0 deletions test-support/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ dependencies {
testImplementation "org.junit.vintage:junit-vintage-engine"
testImplementation "org.assertj:assertj-core"
}

compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}
3 changes: 3 additions & 0 deletions test/integration-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ idea {
}
}

compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}

test {
systemProperties = System.properties
Expand Down

0 comments on commit 21e31a1

Please sign in to comment.