Skip to content

Commit 4180384

Browse files
committed
[Gradle] Simple fix the dependencies in test-framework
The transitive dependencies in test-framework inheritely have a version conflict that results in a jarHell in our example builds. We fix that for now by keeping the dependencies non transitive for now as it has been in the past before we changed transitive dependency handling.
1 parent a682ed8 commit 4180384

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/framework/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010
apply plugin: 'elasticsearch.build'
1111
apply plugin: 'elasticsearch.publish'
1212

13+
configurations {
14+
// we do not wanto expose the inheritedly conflict in transitive dependencies by
15+
// bringing in different versions of junit, hamcrest and randomizedtesting
16+
// so we exclude them here and re-declare the versions we want below
17+
// to keep the example build happy that does not align transitive dependencies.
18+
//
19+
runtimeElements {
20+
transitive = false
21+
}
22+
}
1323
dependencies {
1424
api project(":client:rest")
1525
api project(':modules:transport-netty4')

0 commit comments

Comments
 (0)