|
|
@ -17,6 +17,7 @@
|
|
|
|
package org.springframework.boot.build.toolchain;
|
|
|
|
package org.springframework.boot.build.toolchain;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
import org.gradle.api.Plugin;
|
|
|
|
import org.gradle.api.Plugin;
|
|
|
@ -85,9 +86,7 @@ public class ToolchainPlugin implements Plugin<Project> {
|
|
|
|
|
|
|
|
|
|
|
|
private void configureTestToolchain(Project project, ToolchainExtension toolchain) {
|
|
|
|
private void configureTestToolchain(Project project, ToolchainExtension toolchain) {
|
|
|
|
project.getTasks().withType(Test.class, (test) -> {
|
|
|
|
project.getTasks().withType(Test.class, (test) -> {
|
|
|
|
// See https://github.com/spring-projects/spring-ldap/issues/570
|
|
|
|
List<String> arguments = Collections.singletonList("--illegal-access=warn");
|
|
|
|
List<String> arguments = Arrays.asList("--add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED",
|
|
|
|
|
|
|
|
"--illegal-access=warn");
|
|
|
|
|
|
|
|
test.jvmArgs(arguments);
|
|
|
|
test.jvmArgs(arguments);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|