@@ -6,6 +6,12 @@ plugins {
66 id ' maven-publish'
77}
88
9+ configurations. all {
10+ // Ensure that no test dependencies below, namely marklogic-junit5, bring in their own version of marklogic-client-api,
11+ // as we only want to use the one built by this project.
12+ exclude group : ' com.marklogic' , module : ' marklogic-client-api'
13+ }
14+
915dependencies {
1016 // Using the latest version now that the 8.0.0 release requires Java 17.
1117 // This is now an implementation dependency as opposed to an api dependency in 7.x and earlier.
@@ -36,23 +42,23 @@ dependencies {
3642 compileOnly ' org.dom4j:dom4j:2.2.0'
3743 compileOnly ' com.google.code.gson:gson:2.13.2'
3844
39- testImplementation ' org.junit.jupiter:junit-jupiter:5.14.0 '
45+ testImplementation " com.marklogic:marklogic-junit5:2.0-SNAPSHOT "
4046
41- testImplementation ' org.xmlunit:xmlunit-legacy:2.10.4 '
47+ testImplementation ' org.xmlunit:xmlunit-legacy:2.11.0 '
4248 testImplementation project(' :examples' )
4349
44- testImplementation ' org.apache.commons:commons-lang3:3.19 .0'
50+ testImplementation ' org.apache.commons:commons-lang3:3.20 .0'
4551
4652 // Allows talking to the Manage API.
4753 testImplementation " com.marklogic:ml-app-deployer:6.2-SNAPSHOT"
4854
49- testImplementation " org.mockito:mockito-core:5.20 .0"
55+ testImplementation " org.mockito:mockito-core:5.21 .0"
5056 testImplementation " org.mockito:mockito-inline:5.2.0"
5157
52- testImplementation " com.squareup.okhttp3:mockwebserver3:5.2.0 "
58+ testImplementation " com.squareup.okhttp3:mockwebserver3:${ okhttpVersion } "
5359
5460 testImplementation " com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${ jacksonVersion} "
55- testImplementation ' ch.qos.logback:logback-classic:1.5.19 '
61+ testImplementation ' ch.qos.logback:logback-classic:1.5.23 '
5662
5763 // Using this to avoid a schema validation issue with the regular xercesImpl
5864 testImplementation ' org.opengis.cite.xerces:xercesImpl-xsd11:2.12-beta-r1667115'
@@ -69,7 +75,7 @@ dependencies {
6975 // https://docs.gradle.org/current/userguide/upgrading_version_8.html#test_framework_implementation_dependencies
7076 // Without this, once using JUnit 5.12 or higher, Gradle will not find any tests and report an error of:
7177 // org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests
72- testRuntimeOnly " org.junit.platform:junit-platform-launcher:1.14.0 "
78+ testRuntimeOnly " org.junit.platform:junit-platform-launcher:${ junitVersion } "
7379}
7480
7581// Ensure that mlHost and mlPassword can override the defaults of localhost/admin if they've been modified
0 commit comments