diff --git a/buildSrc/version.properties b/buildSrc/version.properties index d9e3908df22..5aaaca745fa 100644 --- a/buildSrc/version.properties +++ b/buildSrc/version.properties @@ -17,3 +17,5 @@ httpclient = 4.5.2 httpcore = 4.4.4 commonslogging = 1.1.3 commonscodec = 1.10 +hamcrest = 1.3 +securemock = 1.2 \ No newline at end of file diff --git a/client-sniffer/build.gradle b/client-sniffer/build.gradle index b0f8e1e22e0..d561e007184 100644 --- a/client-sniffer/build.gradle +++ b/client-sniffer/build.gradle @@ -35,11 +35,11 @@ dependencies { testCompile "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}" testCompile "junit:junit:${versions.junit}" - testCompile "org.hamcrest:hamcrest-all:1.3" + testCompile "org.hamcrest:hamcrest-all:${versions.hamcrest}" testCompile "org.apache.lucene:lucene-test-framework:${versions.lucene}" testCompile "org.apache.lucene:lucene-core:${versions.lucene}" testCompile "org.apache.lucene:lucene-codecs:${versions.lucene}" - testCompile "org.elasticsearch:securemock:1.2" + testCompile "org.elasticsearch:securemock:${versions.securemock}" } //TODO compiling from 1.8 with target 1.7 and source 1.7 is best effort, not enough to ensure we are java 7 compatible diff --git a/client/build.gradle b/client/build.gradle index 4c4a56d7731..2c82fd74569 100644 --- a/client/build.gradle +++ b/client/build.gradle @@ -33,11 +33,11 @@ dependencies { testCompile "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}" testCompile "junit:junit:${versions.junit}" - testCompile "org.hamcrest:hamcrest-all:1.3" + testCompile "org.hamcrest:hamcrest-all:${versions.hamcrest}" testCompile "org.apache.lucene:lucene-test-framework:${versions.lucene}" testCompile "org.apache.lucene:lucene-core:${versions.lucene}" testCompile "org.apache.lucene:lucene-codecs:${versions.lucene}" - testCompile "org.elasticsearch:securemock:1.2" + testCompile "org.elasticsearch:securemock:${versions.securemock}" } //TODO compiling from 1.8 with target 1.7 and source 1.7 is best effort, not enough to ensure we are java 7 compatible diff --git a/test/framework/build.gradle b/test/framework/build.gradle index 078511611fe..6ddcb7598a1 100644 --- a/test/framework/build.gradle +++ b/test/framework/build.gradle @@ -23,7 +23,7 @@ dependencies { compile "org.elasticsearch:elasticsearch:${version}" compile "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}" compile "junit:junit:${versions.junit}" - compile "org.hamcrest:hamcrest-all:1.3" + compile "org.hamcrest:hamcrest-all:${versions.hamcrest}" compile "org.apache.lucene:lucene-test-framework:${versions.lucene}" compile "org.apache.lucene:lucene-codecs:${versions.lucene}" compile "org.elasticsearch:client:${version}" @@ -31,7 +31,7 @@ dependencies { compile "org.apache.httpcomponents:httpcore:${versions.httpcore}" compile "commons-logging:commons-logging:${versions.commonslogging}" compile "commons-codec:commons-codec:${versions.commonscodec}" - compile "org.elasticsearch:securemock:1.2" + compile "org.elasticsearch:securemock:${versions.securemock}" } compileJava.options.compilerArgs << '-Xlint:-cast,-rawtypes,-try,-unchecked'