File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ apply plugin: 'elasticsearch.publish'
12
12
13
13
configurations {
14
14
// we do not want to expose a version conflict in transitive dependencies by
15
- // bringing in different versions of hamcrest.
16
- // Therefore we exclude transitive deps on hamcrest here as we have a direct
15
+ // bringing in different versions of hamcrest and hamcrest-core .
16
+ // Therefore we exclude transitive deps on hamcrest-core here as we have a direct
17
17
// dependency on a newer version.
18
18
runtimeElements {
19
- exclude group : ' org.hamcrest'
19
+ exclude group : ' org.hamcrest' , module : ' hamcrest-core '
20
20
}
21
21
}
22
22
dependencies {
@@ -27,9 +27,13 @@ dependencies {
27
27
api project(" :libs:cli" )
28
28
api project(" :libs:entitlement:bridge" )
29
29
api " com.carrotsearch.randomizedtesting:randomizedtesting-runner:${ versions.randomizedrunner} "
30
- api(" junit:junit:${ versions.junit} " )
30
+ api(" junit:junit:${ versions.junit} " ) {
31
+ // exclude group: 'org.hamcrest'
32
+ }
31
33
api " org.hamcrest:hamcrest:${ versions.hamcrest} "
32
- api " org.apache.lucene:lucene-test-framework:${ versions.lucene} "
34
+ api(" org.apache.lucene:lucene-test-framework:${ versions.lucene} " ) {
35
+ // exclude group: 'org.hamcrest'
36
+ }
33
37
api " org.apache.lucene:lucene-codecs:${ versions.lucene} "
34
38
api " commons-logging:commons-logging:${ versions.commonslogging} "
35
39
api " commons-codec:commons-codec:${ versions.commonscodec} "
You can’t perform that action at this time.
0 commit comments