A new user interface for you! Read more...

File 0001-Local-maven-repo.patch of Package elasticsearch

From 8ee64cfb154fcd4755688770c311e8138ad05ec9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Tue, 10 Jan 2017 21:19:49 +0100
Subject: [PATCH] Local maven repo

don't compile gradle-logging

It's already included in /usr/share/gradle/lib
---
 benchmarks/build.gradle                              |  7 ++++++-
 build.gradle                                         |  6 ++++++
 buildSrc/build.gradle                                | 14 +++++++++++---
 client/benchmark/build.gradle                        |  7 ++++++-
 client/client-benchmark-noop-api-plugin/build.gradle |  5 +++++
 client/rest/build.gradle                             |  5 +++++
 client/sniffer/build.gradle                          |  5 +++++
 client/test/build.gradle                             |  5 +++++
 client/transport/build.gradle                        |  5 +++++
 core/build.gradle                                    |  6 ++++++
 distribution/build.gradle                            |  2 +-
 distribution/tools/plugin-cli/build.gradle           |  6 ++++++
 modules/build.gradle                                 |  5 +++++
 modules/lang-painless/build.gradle                   |  6 ++++++
 plugins/analysis-icu/build.gradle                    |  6 ++++++
 plugins/analysis-kuromoji/build.gradle               |  6 ++++++
 plugins/analysis-phonetic/build.gradle               |  6 ++++++
 plugins/analysis-smartcn/build.gradle                |  6 ++++++
 plugins/analysis-stempel/build.gradle                |  6 ++++++
 plugins/analysis-ukrainian/build.gradle              |  6 ++++++
 plugins/build.gradle                                 |  7 +++++++
 plugins/discovery-azure-classic/build.gradle         |  6 ++++++
 plugins/discovery-ec2/build.gradle                   |  6 ++++++
 plugins/discovery-file/build.gradle                  |  6 ++++++
 plugins/discovery-gce/build.gradle                   |  6 ++++++
 plugins/examples/script-expert-scoring/build.gradle  |  6 ++++++
 plugins/ingest-attachment/build.gradle               |  6 ++++++
 plugins/ingest-geoip/build.gradle                    |  6 ++++++
 plugins/ingest-user-agent/build.gradle               |  6 ++++++
 plugins/jvm-example/build.gradle                     |  6 ++++++
 plugins/mapper-murmur3/build.gradle                  |  8 ++++++++
 plugins/mapper-size/build.gradle                     |  6 ++++++
 plugins/repository-azure/build.gradle                |  6 ++++++
 plugins/repository-gcs/build.gradle                  |  6 ++++++
 plugins/repository-hdfs/build.gradle                 |  6 ++++++
 plugins/repository-s3/build.gradle                   |  6 ++++++
 plugins/store-smb/build.gradle                       |  7 +++++++
 qa/smoke-test-ingest-disabled/build.gradle           |  6 ++++++
 qa/wildfly/build.gradle                              | 11 +++--------
 test/build.gradle                                    |  7 +++++++
 test/fixtures/example-fixture/build.gradle           |  5 +++++
 test/fixtures/hdfs-fixture/build.gradle              |  5 +++++
 test/fixtures/old-elasticsearch/build.gradle         |  6 ++++++
 test/framework/build.gradle                          |  5 +++++
 test/logger-usage/build.gradle                       |  5 +++++
 45 files changed, 262 insertions(+), 14 deletions(-)

diff --git a/benchmarks/build.gradle b/benchmarks/build.gradle
index 44687f154fff..ec6a1eb5f19a 100644
--- a/benchmarks/build.gradle
+++ b/benchmarks/build.gradle
@@ -20,7 +20,7 @@
 buildscript {
     repositories {
         maven {
-            url 'https://plugins.gradle.org/m2/'
+            url '/home/abuild/rpmbuild/BUILD/kit/m2'
         }
     }
     dependencies {
@@ -43,6 +43,11 @@ mainClassName = 'org.openjdk.jmh.Main'
 
 test.enabled = false
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
 dependencies {
     compile("org.elasticsearch:elasticsearch:${version}") {
         // JMH ships with the conflicting version 4.6. This prevents us from using jopt-simple in benchmarks (which should be ok) but allows
diff --git a/build.gradle b/build.gradle
index 601debbc3dd1..97bc1313ba52 100644
--- a/build.gradle
+++ b/build.gradle
@@ -27,6 +27,12 @@ import org.elasticsearch.gradle.BuildPlugin
 import org.elasticsearch.gradle.VersionProperties
 import org.elasticsearch.gradle.Version
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 // common maven publishing configuration
 subprojects {
   group = 'org.elasticsearch'
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
index 73115aab88fd..a4f9e77ae560 100644
--- a/buildSrc/build.gradle
+++ b/buildSrc/build.gradle
@@ -77,7 +77,9 @@ processResources {
  *****************************************************************************/
 
 repositories {
-  jcenter()
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
 }
 
 dependencies {
@@ -101,7 +103,6 @@ dependencies {
 // Use logging dependency instead
 
 dependencies {
-  compileOnly "org.gradle:gradle-logging:${GradleVersion.current().getVersion()}"
   compile 'ru.vyarus:gradle-animalsniffer-plugin:1.2.0' // Gradle 2.14 requires a version > 1.0.1
 }
 
@@ -115,7 +116,9 @@ if (project == rootProject) {
     if (System.getProperty("repos.mavenLocal") != null) {
       mavenLocal()
     }
-    mavenCentral()
+    maven {
+      url '/home/abuild/rpmbuild/BUILD/kit/m2'
+    }
   }
   test.exclude 'org/elasticsearch/test/NamingConventionsCheckBadClasses*'
 }
@@ -127,6 +130,11 @@ if (project == rootProject) {
 // this happens when included as a normal project in the build, which we do
 // to enforce precommit checks like forbidden apis, as well as setup publishing
 if (project != rootProject) {
+  repositories {
+    maven {
+      url '/home/abuild/rpmbuild/BUILD/kit/m2'
+    }
+  }
   apply plugin: 'elasticsearch.build'
   apply plugin: 'nebula.maven-base-publish'
   apply plugin: 'nebula.maven-scm'
diff --git a/client/benchmark/build.gradle b/client/benchmark/build.gradle
index f488c75b1dfe..bdf0c692ae15 100644
--- a/client/benchmark/build.gradle
+++ b/client/benchmark/build.gradle
@@ -20,7 +20,7 @@
 buildscript {
   repositories {
     maven {
-      url 'https://plugins.gradle.org/m2/'
+      url '/home/abuild/rpmbuild/BUILD/kit/m2'
     }
   }
   dependencies {
@@ -50,6 +50,11 @@ check.dependsOn.remove(test)
 // explicitly override the test task too in case somebody invokes 'gradle test' so it won't trip
 task test(type: Test, overwrite: true)
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
 dependencies {
   compile 'org.apache.commons:commons-math3:3.2'
 
diff --git a/client/client-benchmark-noop-api-plugin/build.gradle b/client/client-benchmark-noop-api-plugin/build.gradle
index bee41034c3ce..c4c91dfd4b86 100644
--- a/client/client-benchmark-noop-api-plugin/build.gradle
+++ b/client/client-benchmark-noop-api-plugin/build.gradle
@@ -17,6 +17,11 @@
  * under the License.
  */
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
 group = 'org.elasticsearch.plugin'
 
 apply plugin: 'elasticsearch.esplugin'
diff --git a/client/rest/build.gradle b/client/rest/build.gradle
index ac489f587111..dd48958ec6be 100644
--- a/client/rest/build.gradle
+++ b/client/rest/build.gradle
@@ -38,6 +38,11 @@ publishing {
   }
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
 dependencies {
   compile "org.apache.httpcomponents:httpclient:${versions.httpclient}"
   compile "org.apache.httpcomponents:httpcore:${versions.httpcore}"
diff --git a/client/sniffer/build.gradle b/client/sniffer/build.gradle
index fdf624e1daa7..310f5409c6b1 100644
--- a/client/sniffer/build.gradle
+++ b/client/sniffer/build.gradle
@@ -38,6 +38,11 @@ publishing {
   }
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
 dependencies {
   compile "org.elasticsearch.client:elasticsearch-rest-client:${version}"
   compile "org.apache.httpcomponents:httpclient:${versions.httpclient}"
diff --git a/client/test/build.gradle b/client/test/build.gradle
index e57d415e9eaa..c09e1d9487dd 100644
--- a/client/test/build.gradle
+++ b/client/test/build.gradle
@@ -26,6 +26,11 @@ apply plugin: 'ru.vyarus.animalsniffer'
 targetCompatibility = JavaVersion.VERSION_1_7
 sourceCompatibility = JavaVersion.VERSION_1_7
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
 dependencies {
   compile "org.apache.httpcomponents:httpcore:${versions.httpcore}"
   compile "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}"
diff --git a/client/transport/build.gradle b/client/transport/build.gradle
index f09668ac6acf..e424341f5e67 100644
--- a/client/transport/build.gradle
+++ b/client/transport/build.gradle
@@ -25,6 +25,11 @@ apply plugin: 'nebula.maven-scm'
 
 group = 'org.elasticsearch.client'
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
 dependencies {
   compile "org.elasticsearch:elasticsearch:${version}"
   compile "org.elasticsearch.plugin:transport-netty4-client:${version}"
diff --git a/core/build.gradle b/core/build.gradle
index fe60cd8b1cf6..2abaf8183731 100644
--- a/core/build.gradle
+++ b/core/build.gradle
@@ -36,6 +36,12 @@ publishing {
 
 archivesBaseName = 'elasticsearch'
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
 
   // lucene
diff --git a/distribution/build.gradle b/distribution/build.gradle
index 5c809de568d8..154744574968 100644
--- a/distribution/build.gradle
+++ b/distribution/build.gradle
@@ -32,7 +32,7 @@ import org.elasticsearch.gradle.test.RunTask
 buildscript {
   repositories {
     maven {
-      url "https://plugins.gradle.org/m2/"
+      url '/home/abuild/rpmbuild/BUILD/kit/m2'
     }
   }
   dependencies {
diff --git a/distribution/tools/plugin-cli/build.gradle b/distribution/tools/plugin-cli/build.gradle
index ae3dca9ef87a..bd53f7f56ac8 100644
--- a/distribution/tools/plugin-cli/build.gradle
+++ b/distribution/tools/plugin-cli/build.gradle
@@ -19,6 +19,12 @@
 
 apply plugin: 'elasticsearch.build'
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   provided "org.elasticsearch:elasticsearch:${version}"
   testCompile "org.elasticsearch.test:framework:${version}"
diff --git a/modules/build.gradle b/modules/build.gradle
index b3dbde24936e..36bb4c36f3c9 100644
--- a/modules/build.gradle
+++ b/modules/build.gradle
@@ -18,6 +18,11 @@
  */
 
 subprojects {
+  repositories {
+    maven {
+      url '/home/abuild/rpmbuild/BUILD/kit/m2'
+    }
+  }
   group = 'org.elasticsearch.plugin' // for modules which publish client jars
   apply plugin: 'elasticsearch.esplugin'
 
diff --git a/modules/lang-painless/build.gradle b/modules/lang-painless/build.gradle
index 87e3d265f429..757904f22fbd 100644
--- a/modules/lang-painless/build.gradle
+++ b/modules/lang-painless/build.gradle
@@ -24,6 +24,12 @@ esplugin {
   classname 'org.elasticsearch.painless.PainlessPlugin'
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile 'org.antlr:antlr4-runtime:4.5.1-1'
   compile 'org.ow2.asm:asm-debug-all:5.1'
diff --git a/plugins/analysis-icu/build.gradle b/plugins/analysis-icu/build.gradle
index 2a8905e080f0..349c231200d0 100644
--- a/plugins/analysis-icu/build.gradle
+++ b/plugins/analysis-icu/build.gradle
@@ -22,6 +22,12 @@ esplugin {
   classname 'org.elasticsearch.plugin.analysis.icu.AnalysisICUPlugin'
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile "org.apache.lucene:lucene-analyzers-icu:${versions.lucene}"
   compile 'com.ibm.icu:icu4j:59.1'
diff --git a/plugins/analysis-kuromoji/build.gradle b/plugins/analysis-kuromoji/build.gradle
index 333818a8d61b..41591d40d4b3 100644
--- a/plugins/analysis-kuromoji/build.gradle
+++ b/plugins/analysis-kuromoji/build.gradle
@@ -22,6 +22,12 @@ esplugin {
   classname 'org.elasticsearch.plugin.analysis.kuromoji.AnalysisKuromojiPlugin'
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile "org.apache.lucene:lucene-analyzers-kuromoji:${versions.lucene}"
 }
diff --git a/plugins/analysis-phonetic/build.gradle b/plugins/analysis-phonetic/build.gradle
index 61c4fdbd5839..9c6e6cb4f385 100644
--- a/plugins/analysis-phonetic/build.gradle
+++ b/plugins/analysis-phonetic/build.gradle
@@ -22,6 +22,12 @@ esplugin {
   classname 'org.elasticsearch.plugin.analysis.AnalysisPhoneticPlugin'
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile "org.apache.lucene:lucene-analyzers-phonetic:${versions.lucene}"
   compile "commons-codec:commons-codec:${versions.commonscodec}"
diff --git a/plugins/analysis-smartcn/build.gradle b/plugins/analysis-smartcn/build.gradle
index ebe44850d00a..7d792ee4f56d 100644
--- a/plugins/analysis-smartcn/build.gradle
+++ b/plugins/analysis-smartcn/build.gradle
@@ -22,6 +22,12 @@ esplugin {
   classname 'org.elasticsearch.plugin.analysis.smartcn.AnalysisSmartChinesePlugin'
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile "org.apache.lucene:lucene-analyzers-smartcn:${versions.lucene}"
 }
diff --git a/plugins/analysis-stempel/build.gradle b/plugins/analysis-stempel/build.gradle
index 488e99ec912b..b1f9362aa77a 100644
--- a/plugins/analysis-stempel/build.gradle
+++ b/plugins/analysis-stempel/build.gradle
@@ -22,6 +22,12 @@ esplugin {
   classname 'org.elasticsearch.plugin.analysis.stempel.AnalysisStempelPlugin'
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile "org.apache.lucene:lucene-analyzers-stempel:${versions.lucene}"
 }
diff --git a/plugins/analysis-ukrainian/build.gradle b/plugins/analysis-ukrainian/build.gradle
index 61f67021a3dc..da9a8d91cf43 100644
--- a/plugins/analysis-ukrainian/build.gradle
+++ b/plugins/analysis-ukrainian/build.gradle
@@ -22,6 +22,12 @@ esplugin {
   classname 'org.elasticsearch.plugin.analysis.ukrainian.AnalysisUkrainianPlugin'
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile "org.apache.lucene:lucene-analyzers-morfologik:${versions.lucene}"
   compile "org.carrot2:morfologik-stemming:2.1.1"
diff --git a/plugins/build.gradle b/plugins/build.gradle
index 27655abf534f..32c85db6ccb0 100644
--- a/plugins/build.gradle
+++ b/plugins/build.gradle
@@ -31,3 +31,10 @@ configure(subprojects.findAll { it.parent.path == project.path }) {
     noticeFile rootProject.file('NOTICE.txt')
   }
 }
+
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
diff --git a/plugins/discovery-azure-classic/build.gradle b/plugins/discovery-azure-classic/build.gradle
index e5ba37d9cb0d..4843e07cc707 100644
--- a/plugins/discovery-azure-classic/build.gradle
+++ b/plugins/discovery-azure-classic/build.gradle
@@ -29,6 +29,12 @@ versions << [
   'jersey': '1.13'
 ]
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile "com.microsoft.azure:azure-svc-mgmt-compute:${versions.azure}"
   compile "com.microsoft.azure:azure-core:${versions.azure}"
diff --git a/plugins/discovery-ec2/build.gradle b/plugins/discovery-ec2/build.gradle
index 815e50f61c12..42a4b5703e33 100644
--- a/plugins/discovery-ec2/build.gradle
+++ b/plugins/discovery-ec2/build.gradle
@@ -26,6 +26,12 @@ versions << [
   'aws': '1.10.69'
 ]
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile "com.amazonaws:aws-java-sdk-ec2:${versions.aws}"
   compile "com.amazonaws:aws-java-sdk-core:${versions.aws}"
diff --git a/plugins/discovery-file/build.gradle b/plugins/discovery-file/build.gradle
index 145d959fa410..1aa3a0ee944b 100644
--- a/plugins/discovery-file/build.gradle
+++ b/plugins/discovery-file/build.gradle
@@ -26,6 +26,12 @@ esplugin {
     classname 'org.elasticsearch.discovery.file.FileBasedDiscoveryPlugin'
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 bundlePlugin {
     from('config/discovery-file') {
         into 'config'
diff --git a/plugins/discovery-gce/build.gradle b/plugins/discovery-gce/build.gradle
index ede168e1f9de..75443d79ab5a 100644
--- a/plugins/discovery-gce/build.gradle
+++ b/plugins/discovery-gce/build.gradle
@@ -9,6 +9,12 @@ versions << [
   'google': '1.20.0'
 ]
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile "com.google.apis:google-api-services-compute:v1-rev71-${versions.google}"
   compile "com.google.api-client:google-api-client:${versions.google}"
diff --git a/plugins/examples/script-expert-scoring/build.gradle b/plugins/examples/script-expert-scoring/build.gradle
index 7c602d9bc027..348430825585 100644
--- a/plugins/examples/script-expert-scoring/build.gradle
+++ b/plugins/examples/script-expert-scoring/build.gradle
@@ -19,6 +19,12 @@
 
 apply plugin: 'elasticsearch.esplugin'
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 esplugin {
   name 'script-expert-scoring'
   description 'An example script engine to use low level Lucene internals for expert scoring'
diff --git a/plugins/ingest-attachment/build.gradle b/plugins/ingest-attachment/build.gradle
index bdc01c0151e9..f03a7f0eb4e8 100644
--- a/plugins/ingest-attachment/build.gradle
+++ b/plugins/ingest-attachment/build.gradle
@@ -30,6 +30,12 @@ versions << [
   'mime4j': '0.7.2'
 ]
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   // mandatory for tika
   compile "org.apache.tika:tika-core:${versions.tika}"
diff --git a/plugins/ingest-geoip/build.gradle b/plugins/ingest-geoip/build.gradle
index e74a27844db7..28fde05545e7 100644
--- a/plugins/ingest-geoip/build.gradle
+++ b/plugins/ingest-geoip/build.gradle
@@ -22,6 +22,12 @@ esplugin {
   classname 'org.elasticsearch.ingest.geoip.IngestGeoIpPlugin'
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile ('com.maxmind.geoip2:geoip2:2.8.0')
   // geoip2 dependencies:
diff --git a/plugins/ingest-user-agent/build.gradle b/plugins/ingest-user-agent/build.gradle
index b78e8aa4c9d0..3cdef2c47f0b 100644
--- a/plugins/ingest-user-agent/build.gradle
+++ b/plugins/ingest-user-agent/build.gradle
@@ -22,6 +22,12 @@ esplugin {
   classname 'org.elasticsearch.ingest.useragent.IngestUserAgentPlugin'
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 integTestCluster {
   extraConfigFile 'ingest-user-agent/test-regexes.yml', 'test/test-regexes.yml'
 }
diff --git a/plugins/jvm-example/build.gradle b/plugins/jvm-example/build.gradle
index 78e54d8bc817..5af05fad96cc 100644
--- a/plugins/jvm-example/build.gradle
+++ b/plugins/jvm-example/build.gradle
@@ -32,6 +32,12 @@ configurations {
   exampleFixture
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   exampleFixture project(':test:fixtures:example-fixture')
 }
diff --git a/plugins/mapper-murmur3/build.gradle b/plugins/mapper-murmur3/build.gradle
index 5b985d9138f5..b4c4f224e727 100644
--- a/plugins/mapper-murmur3/build.gradle
+++ b/plugins/mapper-murmur3/build.gradle
@@ -21,3 +21,11 @@ esplugin {
   description 'The Mapper Murmur3 plugin allows to compute hashes of a field\'s values at index-time and to store them in the index.'
   classname 'org.elasticsearch.plugin.mapper.MapperMurmur3Plugin'
 }
+
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
+
diff --git a/plugins/mapper-size/build.gradle b/plugins/mapper-size/build.gradle
index 7d5aa1ee2760..0dcb4698d5be 100644
--- a/plugins/mapper-size/build.gradle
+++ b/plugins/mapper-size/build.gradle
@@ -22,6 +22,12 @@ esplugin {
   classname 'org.elasticsearch.plugin.mapper.MapperSizePlugin'
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 // TODO: migrate to points
 compileJava.options.compilerArgs << "-Xlint:-deprecation"
 compileTestJava.options.compilerArgs << "-Xlint:-deprecation"
diff --git a/plugins/repository-azure/build.gradle b/plugins/repository-azure/build.gradle
index 60f5bed842e3..69ff6a52f422 100644
--- a/plugins/repository-azure/build.gradle
+++ b/plugins/repository-azure/build.gradle
@@ -22,6 +22,12 @@ esplugin {
   classname 'org.elasticsearch.plugin.repository.azure.AzureRepositoryPlugin'
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile 'com.microsoft.azure:azure-storage:5.0.0'
   compile 'com.microsoft.azure:azure-keyvault-core:0.8.0'
diff --git a/plugins/repository-gcs/build.gradle b/plugins/repository-gcs/build.gradle
index 84316827a209..a1186cd10964 100644
--- a/plugins/repository-gcs/build.gradle
+++ b/plugins/repository-gcs/build.gradle
@@ -26,6 +26,12 @@ versions << [
         'google': '1.21.0',
 ]
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile "com.google.apis:google-api-services-storage:v1-rev66-${versions.google}"
   compile "com.google.api-client:google-api-client:${versions.google}"
diff --git a/plugins/repository-hdfs/build.gradle b/plugins/repository-hdfs/build.gradle
index 6426f588352b..b93f78b3d6f7 100644
--- a/plugins/repository-hdfs/build.gradle
+++ b/plugins/repository-hdfs/build.gradle
@@ -39,6 +39,12 @@ configurations {
   hdfsFixture
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile "org.apache.hadoop:hadoop-client:${versions.hadoop2}"
   compile "org.apache.hadoop:hadoop-common:${versions.hadoop2}"
diff --git a/plugins/repository-s3/build.gradle b/plugins/repository-s3/build.gradle
index 7071307fbc3c..8e60ed116a07 100644
--- a/plugins/repository-s3/build.gradle
+++ b/plugins/repository-s3/build.gradle
@@ -26,6 +26,12 @@ versions << [
   'aws': '1.11.223'
 ]
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   compile "com.amazonaws:aws-java-sdk-s3:${versions.aws}"
   compile "com.amazonaws:aws-java-sdk-kms:${versions.aws}"
diff --git a/plugins/store-smb/build.gradle b/plugins/store-smb/build.gradle
index f2238e0a49c9..ac0826b7365f 100644
--- a/plugins/store-smb/build.gradle
+++ b/plugins/store-smb/build.gradle
@@ -22,3 +22,10 @@ esplugin {
   classname 'org.elasticsearch.plugin.store.smb.SMBStorePlugin'
 }
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
+
diff --git a/qa/smoke-test-ingest-disabled/build.gradle b/qa/smoke-test-ingest-disabled/build.gradle
index cf3ca9a713f9..a56a79fe5d76 100644
--- a/qa/smoke-test-ingest-disabled/build.gradle
+++ b/qa/smoke-test-ingest-disabled/build.gradle
@@ -20,6 +20,12 @@
 apply plugin: 'elasticsearch.standalone-rest-test'
 apply plugin: 'elasticsearch.rest-test'
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
     testCompile project(path: ':modules:ingest-common', configuration: 'runtime')
 }
diff --git a/qa/wildfly/build.gradle b/qa/wildfly/build.gradle
index 06a2a6ca4527..e47eff22beb6 100644
--- a/qa/wildfly/build.gradle
+++ b/qa/wildfly/build.gradle
@@ -39,14 +39,9 @@ final int managementPort = 9990 + portOffset
 final String stopWildflyCommand = "${wildflyInstall}/bin/jboss-cli.sh --controller=localhost:${managementPort} --connect command=shutdown"
 
 repositories {
-    mavenCentral()
-    // the Wildfly distribution is not available via a repository, so we fake an Ivy repository on top of the download site
-    ivy {
-        url "http://download.jboss.org"
-        layout 'pattern', {
-            artifact 'wildfly/[revision]/[module]-[revision].[ext]'
-        }
-    }
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
 }
 
 configurations {
diff --git a/test/build.gradle b/test/build.gradle
index 594fa5bbb705..54b64b672a35 100644
--- a/test/build.gradle
+++ b/test/build.gradle
@@ -19,6 +19,13 @@
 
 import org.elasticsearch.gradle.precommit.PrecommitTasks
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
+
 subprojects {
   // fixtures is just intermediate parent project
   if (name == 'fixtures') return
diff --git a/test/fixtures/example-fixture/build.gradle b/test/fixtures/example-fixture/build.gradle
index 225a2cf9deba..2eac0cee0a9a 100644
--- a/test/fixtures/example-fixture/build.gradle
+++ b/test/fixtures/example-fixture/build.gradle
@@ -17,6 +17,11 @@
  * under the License.
  */
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
 apply plugin: 'elasticsearch.build'
 test.enabled = false
 // Not published so no need to assemble
diff --git a/test/fixtures/hdfs-fixture/build.gradle b/test/fixtures/hdfs-fixture/build.gradle
index 70cb2b6bed2c..229686071d24 100644
--- a/test/fixtures/hdfs-fixture/build.gradle
+++ b/test/fixtures/hdfs-fixture/build.gradle
@@ -23,6 +23,11 @@ versions << [
   'hadoop2': '2.8.1'
 ]
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
 // we create MiniHdfsCluster with the hadoop artifact
 dependencies {
   compile "org.apache.hadoop:hadoop-minicluster:${versions.hadoop2}"
diff --git a/test/fixtures/old-elasticsearch/build.gradle b/test/fixtures/old-elasticsearch/build.gradle
index 5cfc02bbba3c..b7e811ee3f9e 100644
--- a/test/fixtures/old-elasticsearch/build.gradle
+++ b/test/fixtures/old-elasticsearch/build.gradle
@@ -26,6 +26,12 @@ a "ports" file with the port on which Elasticsearch is running.
 apply plugin: 'elasticsearch.build'
 test.enabled = false
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
+
 dependencies {
   // Just for the constants....
   compile "org.apache.lucene:lucene-core:${versions.lucene}"
diff --git a/test/framework/build.gradle b/test/framework/build.gradle
index 0e47d3fae0e5..15597d099b9a 100644
--- a/test/framework/build.gradle
+++ b/test/framework/build.gradle
@@ -19,6 +19,11 @@
 
 import org.elasticsearch.gradle.precommit.PrecommitTasks;
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
 dependencies {
   compile "org.elasticsearch.client:elasticsearch-rest-client:${version}"
   compile "org.elasticsearch:elasticsearch:${version}"
diff --git a/test/logger-usage/build.gradle b/test/logger-usage/build.gradle
index 98fe76bfcdc3..b310aa48dc14 100644
--- a/test/logger-usage/build.gradle
+++ b/test/logger-usage/build.gradle
@@ -19,6 +19,11 @@ import org.elasticsearch.gradle.precommit.PrecommitTasks
  * under the License.
  */
 
+repositories {
+  maven {
+    url '/home/abuild/rpmbuild/BUILD/kit/m2'
+  }
+}
 dependencies {
   compile 'org.ow2.asm:asm-debug-all:5.0.4' // use asm-debug-all as asm-all is broken
   compile "org.apache.logging.log4j:log4j-api:${versions.log4j}"
-- 
2.14.3