Skip to content

Commit 4cf25ec

Browse files
committed
Fix for MLCP example project
1 parent f88cb7c commit 4cf25ec

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

examples/mlcp-project/build.gradle

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,19 @@ repositories {
2424
}
2525

2626

27+
// For MLCP 11.1.0 and higher, Gradle needs to be told which version of the guava dependency to use.
28+
// Per https://stackoverflow.com/questions/76897459/how-can-i-make-gradle-pick-the-right-guava-variant/77399208#77399208,
29+
// the following will achieve that.
2730
configurations {
28-
mlcp
31+
mlcp {
32+
attributes {
33+
attribute(TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE, objects.named(TargetJvmEnvironment.class, TargetJvmEnvironment.STANDARD_JVM))
34+
}
35+
}
2936
}
3037

3138
dependencies {
32-
mlcp 'com.marklogic:mlcp:10.0.9.5'
39+
mlcp 'com.marklogic:mlcp:11.1.0'
3340

3441
/**
3542
* mlcp uses logback for logging, and without a logback configuration file, no MLCP logging will appear.

0 commit comments

Comments
 (0)