Add com.sun.jndi.ldap Module

- Needed for importing com.sun.jndi.ldap in tests
This commit is contained in:
Josh Cummings
2022-03-03 11:33:05 -07:00
parent 4a79cb51e9
commit 21e31a1199
10 changed files with 50 additions and 0 deletions

View File

@@ -13,3 +13,7 @@ dependencies {
testImplementation "org.easymock:easymock"
testImplementation "org.assertj:assertj-core"
}
compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}

View File

@@ -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'
]
}
}

View File

@@ -17,3 +17,7 @@ dependencies {
exclude group: 'com.sun.jmx'
}
}
compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}

View File

@@ -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
}

View File

@@ -18,6 +18,10 @@ dependencies {
testImplementation 'org.springframework.security:spring-security-test'
}
compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}
tasks.named('test') {
useJUnitPlatform()
}

View File

@@ -24,3 +24,7 @@ dependencies {
"junit:junit",
"org.assertj:assertj-core"
}
compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}

View File

@@ -24,3 +24,7 @@ dependencies {
"junit:junit",
"org.assertj:assertj-core"
}
compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}

View File

@@ -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'
]
}
}

View File

@@ -29,3 +29,7 @@ dependencies {
testImplementation "org.junit.vintage:junit-vintage-engine"
testImplementation "org.assertj:assertj-core"
}
compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}

View File

@@ -83,6 +83,9 @@ idea {
}
}
compileTestJava {
targetCompatibility = JavaVersion.VERSION_11
}
test {
systemProperties = System.properties