@@ -1038,6 +1038,15 @@ project(':server') {
10381038 }
10391039
10401040 apply plugin : ' java-test-fixtures'
1041+ configurations {
1042+ // To prevent a UniqueResourceException due the same resource existing in both
1043+ // org.apache.directory.api/api-all and org.apache.directory.api/api-ldap-schema-data
1044+ testImplementation. exclude module : ' api-ldap-schema-data'
1045+ testFixturesImplementation. exclude module : ' api-ldap-schema-data'
1046+ testFixturesImplementation. exclude group : ' org.bouncycastle' , module : ' bcprov-jdk15on'
1047+ testCompileClasspath. exclude group : ' org.bouncycastle' , module : ' bcprov-jdk15on'
1048+ testRuntimeClasspath. exclude group : ' org.bouncycastle' , module : ' bcprov-jdk15on'
1049+ }
10411050
10421051 dependencies {
10431052 implementation libs. commonsValidator
@@ -1058,7 +1067,6 @@ project(':server') {
10581067 implementation log4j2Libs
10591068
10601069 testImplementation testFixtures(project(' :clients' ))
1061-
10621070 testImplementation libs. mockitoCore
10631071 testImplementation libs. junitJupiter
10641072 testImplementation testLog4j2Libs
@@ -1074,6 +1082,20 @@ project(':server') {
10741082 testFixturesImplementation project(' :server-common' )
10751083 testFixturesImplementation testFixtures(project(' :server-common' ))
10761084 testFixturesImplementation libs. junitJupiter
1085+ testFixturesImplementation(libs. apacheda) {
1086+ exclude group : ' xml-apis' , module : ' xml-apis'
1087+ // `mina-core` is a transitive dependency for `apacheds` and `apacheda`.
1088+ // It is safer to use from `apacheds` since that is the implementation.
1089+ exclude module : ' mina-core'
1090+ }
1091+ testFixturesImplementation libs. apachedsCoreApi
1092+ testFixturesImplementation libs. apachedsInterceptorKerberos
1093+ testFixturesImplementation libs. apachedsProtocolShared
1094+ testFixturesImplementation libs. apachedsProtocolKerberos
1095+ testFixturesImplementation libs. apachedsProtocolLdap
1096+ testFixturesImplementation libs. apachedsLdifPartition
1097+ testFixturesImplementation libs. apachedsMavibotPartition
1098+ testFixturesImplementation libs. apachedsJdbmPartition
10771099
10781100 testRuntimeOnly runtimeTestLibs
10791101 }
@@ -1142,9 +1164,6 @@ project(':core') {
11421164 implementation. exclude module : ' jmxri'
11431165 implementation. exclude module : ' jmxtools'
11441166 implementation. exclude module : ' mail'
1145- // To prevent a UniqueResourceException due the same resource existing in both
1146- // org.apache.directory.api/api-all and org.apache.directory.api/api-ldap-schema-data
1147- testImplementation. exclude module : ' api-ldap-schema-data'
11481167 releaseOnly
11491168 }
11501169
@@ -1200,6 +1219,7 @@ project(':core') {
12001219 testImplementation project(' :test-common:test-common-runtime' )
12011220 testImplementation project(' :test-common:test-common-internal-api' )
12021221 testImplementation project(' :test-common:test-common-util' )
1222+ testImplementation libs. apachedsCoreApi
12031223 testImplementation libs. bcpkix
12041224 testImplementation libs. mockitoCore
12051225 testImplementation(libs. apacheda) {
@@ -1220,6 +1240,22 @@ project(':core') {
12201240 testImplementation testLog4j2Libs
12211241 testImplementation libs. mockOAuth2Server
12221242
1243+ configurations {
1244+ // To prevent a UniqueResourceException due the same resource existing in both
1245+ // org.apache.directory.api/api-all and org.apache.directory.api/api-ldap-schema-data
1246+ testRuntimeOnly. exclude module : ' api-ldap-schema-data'
1247+ }
1248+
1249+ testRuntimeOnly(libs. apacheda) {
1250+ exclude group : ' xml-apis' , module : ' xml-apis'
1251+ // `mina-core` is a transitive dependency for `apacheds` and `apacheda`.
1252+ // It is safer to use from `apacheds` since that is the implementation.
1253+ exclude module : ' mina-core'
1254+ }
1255+ testRuntimeOnly libs. apachedsInterceptorKerberos
1256+ testRuntimeOnly libs. apachedsProtocolKerberos
1257+ testRuntimeOnly libs. apachedsProtocolLdap
1258+ testRuntimeOnly libs. apachedsLdifPartition
12231259 testRuntimeOnly runtimeTestLibs
12241260 }
12251261
@@ -2175,7 +2211,6 @@ project(':clients:clients-integration-tests') {
21752211 testImplementation project(' :server' )
21762212 testImplementation project(' :storage' )
21772213 testImplementation testFixtures(project(' :storage' ))
2178- testImplementation project(' :core' ). sourceSets. test. output
21792214 testImplementation testFixtures(project(' :clients' ))
21802215 implementation project(' :server-common' )
21812216 testImplementation testFixtures(project(' :server-common' ))
@@ -2474,6 +2509,7 @@ project(':storage') {
24742509 testImplementation project(' :test-common:test-common-runtime' )
24752510 testImplementation project(' :test-common:test-common-util' )
24762511 testImplementation project(' :server' )
2512+ testImplementation testFixtures(project(' :server' ))
24772513 testImplementation project(' :server-common' )
24782514 testImplementation testFixtures(project(' :server-common' ))
24792515 testImplementation testFixtures(project(' :metadata' ))
@@ -2665,7 +2701,6 @@ project(':tools') {
26652701 testImplementation project(' :connect:api' )
26662702 testImplementation project(' :connect:runtime' )
26672703 testImplementation testFixtures(project(' :connect:runtime' ))
2668- testImplementation project(' :storage:storage-api' ). sourceSets. main. output
26692704 testImplementation testFixtures(project(' :storage' ))
26702705 testImplementation project(' :streams' )
26712706 testImplementation project(' :streams' ). sourceSets. test. output
@@ -4135,6 +4170,7 @@ gradle.projectsEvaluated {
41354170 ' metadata' : ' :metadata' ,
41364171 ' raft' : ' :raft' ,
41374172 ' connect/runtime' : ' :connect:runtime' ,
4173+ ' core' : ' :core' ,
41384174 ]
41394175 allprojects { proj ->
41404176 proj. configurations. all { config ->
0 commit comments