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'
1212
1313configurations {
1414 // 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
1717 // dependency on a newer version.
1818 runtimeElements {
19- exclude group : ' org.hamcrest'
19+ exclude group : ' org.hamcrest' , module : ' hamcrest-core '
2020 }
2121}
2222dependencies {
@@ -27,9 +27,13 @@ dependencies {
2727 api project(" :libs:cli" )
2828 api project(" :libs:entitlement:bridge" )
2929 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+ }
3133 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+ }
3337 api " org.apache.lucene:lucene-codecs:${ versions.lucene} "
3438 api " commons-logging:commons-logging:${ versions.commonslogging} "
3539 api " commons-codec:commons-codec:${ versions.commonscodec} "
You can’t perform that action at this time.
0 commit comments