Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions test/framework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@
apply plugin: 'elasticsearch.build'
apply plugin: 'elasticsearch.publish'

configurations {
// we do not want to expose a version conflict in transitive dependencies by
// bringing in different versions of hamcrest and hamcrest-core.
// Therefore we exclude transitive deps on hamcrest-core here as we have a direct
// dependency on a newer version.
runtimeElements {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
}
dependencies {
api project(":client:rest")
api project(':modules:transport-netty4')
api project(':libs:ssl-config')
api project(":server")
api project(":libs:cli")
api project(":libs:entitlement:bridge")
api "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}"
api("junit:junit:${versions.junit}") {
// exclude group: 'org.hamcrest'
api ("com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}") {
exclude group: "junit", module: "junit"
}

// we do not want to expose a version conflict in transitive dependencies by
// bringing in different versions of dependencies.
// Therefore we exclude mismatches in our transitive dependencies explicitly.
// This also avoids jarHell issues with different hamcrest related dependencies
// like hamcrest and hamcrest-core
api "org.hamcrest:hamcrest:${versions.hamcrest}"
api("junit:junit:${versions.junit}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
api("org.apache.lucene:lucene-test-framework:${versions.lucene}") {
// exclude group: 'org.hamcrest'
exclude group: "junit", module: "junit"
exclude group: 'com.carrotsearch.randomizedtesting', module: 'randomizedtesting-runner'
}
api "org.apache.lucene:lucene-codecs:${versions.lucene}"
api "commons-logging:commons-logging:${versions.commonslogging}"
Expand Down