diff options
author | Ryan Ernst <ryan@iernst.net> | 2015-11-09 23:34:22 -0800 |
---|---|---|
committer | Ryan Ernst <ryan@iernst.net> | 2015-11-09 23:59:56 -0800 |
commit | 7a6155e12f69552d761d88e94094f054e6ae6a57 (patch) | |
tree | ac9c08a2d01b83506aa2e498347ca7df9f3c70b2 /core/build.gradle | |
parent | 08b6148bb89f20615589b2c6c3fa3d2fc3a862b4 (diff) |
Build: Consolidate dependencies specified in multiple places
Some dependencies must be specified in a couple places in the build.
e.g. randomized runner is specified both in buildSrc (for the gradle
wrapper plugin), as well as in the test-framework.
This change creates buildSrc/versions.properties which acts similar to
the set of shared version properties we used to have in the maven parent
pom.
Diffstat (limited to 'core/build.gradle')
-rw-r--r-- | core/build.gradle | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/core/build.gradle b/core/build.gradle index a7fcda9ca0..bd3dd7b67e 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -27,12 +27,6 @@ apply plugin: 'nebula.optional-base' archivesBaseName = 'elasticsearch' -versions << [ - jackson: '2.6.2', - log4j: '1.2.17', - slf4j: '1.6.2' -] - dependencies { // lucene @@ -76,18 +70,18 @@ dependencies { compile 'org.hdrhistogram:HdrHistogram:2.1.6' // lucene spatial - compile 'com.spatial4j:spatial4j:0.5', optional - compile 'com.vividsolutions:jts:1.13', optional + compile "com.spatial4j:spatial4j:${versions.spatial4j}", optional + compile "com.vividsolutions:jts:${versions.jts}", optional // templating - compile 'com.github.spullara.mustache.java:compiler:0.9.1', optional + compile "com.github.spullara.mustache.java:compiler:${versions.mustache}", optional // logging compile "log4j:log4j:${versions.log4j}", optional compile "log4j:apache-log4j-extras:${versions.log4j}", optional compile "org.slf4j:slf4j-api:${versions.slf4j}", optional - compile 'net.java.dev.jna:jna:4.1.0', optional + compile "net.java.dev.jna:jna:${versions.jna}", optional if (isEclipse == false || project.path == "${projectsPrefix}:core-tests") { testCompile("org.elasticsearch:test-framework:${version}") { |