File tree Expand file tree Collapse file tree 3 files changed +21
-12
lines changed
marklogic-spark-connector
marklogic-spark-langchain4j Expand file tree Collapse file tree 3 files changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,14 @@ subprojects {
32
32
}
33
33
}
34
34
35
+ configurations. all {
36
+ // Ensures that slf4j-api 1.x does not appear on the Flux classpath in particular, which can lead to this
37
+ // issue - https://www.slf4j.org/codes.html#StaticLoggerBinder .
38
+ resolutionStrategy {
39
+ force " org.slf4j:slf4j-api:2.0.13"
40
+ }
41
+ }
42
+
35
43
test {
36
44
useJUnitPlatform()
37
45
finalizedBy jacocoTestReport
Original file line number Diff line number Diff line change @@ -23,14 +23,6 @@ configurations {
23
23
testImplementation. extendsFrom(compileOnly)
24
24
}
25
25
26
- configurations. all {
27
- // Ensures that slf4j-api 1.x does not appear on the Flux classpath in particular, which can lead to this
28
- // issue - https://www.slf4j.org/codes.html#StaticLoggerBinder .
29
- resolutionStrategy {
30
- force " org.slf4j:slf4j-api:2.0.13"
31
- }
32
- }
33
-
34
26
dependencies {
35
27
// Adding these forces code coverage data to be calculated for these subprojects.
36
28
jacocoAggregation project(' :marklogic-langchain4j' )
@@ -68,9 +60,12 @@ dependencies {
68
60
exclude group : " com.fasterxml.jackson.dataformat"
69
61
}
70
62
71
- // Allows us to test the langchain4j-specific features without including them in the connector by default.
72
- testImplementation project(" :marklogic-langchain4j" )
73
- testImplementation project(" :marklogic-spark-langchain4j" )
63
+ // Once we update langchain4j to 0.36.0 or higher, which requires Java 17, this will need to become a
64
+ // testImplementation dependency, and we'll figure out how to include them separately in Flux.
65
+ shadowDependencies (project(" :marklogic-spark-langchain4j" )) {
66
+ exclude group : " com.fasterxml.jackson.core"
67
+ exclude group : " com.fasterxml.jackson.dataformat"
68
+ }
74
69
75
70
// Supports testing the embedder feature.
76
71
testImplementation " dev.langchain4j:langchain4j-embeddings-all-minilm-l6-v2:0.35.0"
Original file line number Diff line number Diff line change 1
1
dependencies {
2
2
implementation project(" :marklogic-spark-api" )
3
- implementation project(" :marklogic-langchain4j" )
3
+
4
+ implementation (project(" :marklogic-langchain4j" )) {
5
+ // These need to be excluded here so they don't sneak in when this module is depended on by the
6
+ // marklogic-spark-connector module.
7
+ exclude group : " com.fasterxml.jackson.core"
8
+ exclude group : " com.fasterxml.jackson.dataformat"
9
+ }
4
10
}
You can’t perform that action at this time.
0 commit comments