@@ -7,17 +7,20 @@ plugins {
77 id ' com.moowork.node' version ' 1.1.1'
88 id ' org.springframework.boot' version ' 2.1.3.RELEASE'
99 id " io.spring.dependency-management" version " 1.0.7.RELEASE"
10- id ' com.marklogic.ml-development-tools' version ' 4.2.0 '
10+ id ' com.marklogic.ml-development-tools' version ' 5.3.2 '
1111}
1212
1313mainClassName= ' com.marklogic.hub.ApplicationConfig'
1414repositories {
15+ // ToDo: Remove this once java-client-api-5.3.2 is released
16+ maven {url ' http://distro.marklogic.com/nexus/repository/maven-releases/' }
1517 jcenter()
1618 maven { url ' http://repo.spring.io/milestone' }
1719 maven { url ' https://developer.marklogic.com/maven2/' }
1820
1921 // Needed for marklogic-junit
2022 maven { url ' https://dl.bintray.com/marklogic-community/Maven/' }
23+
2124}
2225
2326group = ' com.marklogic'
@@ -32,17 +35,32 @@ ext.junitPlatformVersion = '1.4.0'
3235ext. junitJupiterVersion = ' 5.4.0'
3336
3437dependencies {
35- compile ' com.marklogic:marklogic-client-api:4.2.0'
36- compile(' com.marklogic:ml-app-deployer:3.16.3' ){
38+ // Forcing use of 1.3.71 - which is what OkHttp 4.7.2 wants, which is what Java Client 5.3 uses - so that 1.2.x
39+ // versions don't come onto the classpath
40+ compile " org.jetbrains.kotlin:kotlin-stdlib:1.3.71"
41+ compile " org.jetbrains.kotlin:kotlin-stdlib-common:1.3.71"
42+ compile (' com.marklogic:marklogic-client-api:5.3.2' ){
43+ exclude group : ' com.fasterxml.woodstox' , module : ' woodstox-core'
44+ // Oddly, the OkHttp 4.4.0 dependency includes version 1.2.70 and 1.3.x of these dependencies. This causes
45+ // class conflict errors. So they're excluded from here, and we force inclusion of 1.3.x below.
46+ exclude group : ' org.jetbrains.kotlin' , module : ' kotlin-stdlib'
47+ exclude group : ' org.jetbrains.kotlin' , module : ' kotlin-stdlib-common'
48+ }
49+ compile(' com.marklogic:ml-app-deployer:4.1.0' ){
3750 exclude group : ' org.springframework' , module : ' http'
51+ // prefer the version declared above
52+ exclude group : ' com.marklogic' , module : ' marklogic-client-api'
3853 }
3954
4055 compile group : ' org.springframework.boot' , name : ' spring-boot' , version : ' 2.1.3.RELEASE'
4156 compile group : ' org.springframework.integration' , name : ' spring-integration-http' , version : ' 5.1.3.RELEASE'
4257 compile group : ' org.springframework.boot' , name : ' spring-boot-autoconfigure' , version : ' 2.1.3.RELEASE'
4358
4459 compile ' com.marklogic:mlcp-util:0.9.0'
45- compile ' com.marklogic:marklogic-data-movement-components:1.0'
60+ compile (' com.marklogic:marklogic-data-movement-components:2.2.0' ){
61+ // prefer the version declared above
62+ exclude group : ' com.marklogic' , module : ' marklogic-client-api'
63+ }
4664 compile ' commons-io:commons-io:2.4'
4765 compile ' org.apache.commons:commons-text:1.1'
4866
@@ -78,7 +96,10 @@ dependencies {
7896 }
7997
8098 // Provides support for invoking marklogic-unit-test tests via JUnit
81- testCompile " com.marklogic:marklogic-junit:1.0.beta"
99+ testCompile (" com.marklogic:marklogic-junit:1.0.beta" ){
100+ // prefer the version declared above
101+ exclude group : ' com.marklogic' , module : ' marklogic-client-api'
102+ }
82103 mlBundle " com.marklogic:marklogic-unit-test-modules:1.0.beta"
83104}
84105
0 commit comments