From b335ac839973c8cfc4326f289e149596e444357e Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Thu, 26 Jul 2018 11:43:00 -0400 Subject: [PATCH] Build: Stop double generating buildSrc pom When we added the `java-gradle-plugin` to `buildSrc` it added a second task to generate the pom that duplicates the publishing work that we configure in `BuildPlugin`. Not only does it dupliciate the pom, it creates a pom that is missing things like `name` and `description` which are required for publishing to maven central. This change disables the duplicate pom generation. --- buildSrc/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index d507c54c45a70..5775b2b6323f1 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -183,4 +183,12 @@ if (project != rootProject) { testClass = 'org.elasticsearch.gradle.test.GradleUnitTestCase' integTestClass = 'org.elasticsearch.gradle.test.GradleIntegrationTestCase' } + + /* + * We alread configure publication and we don't need or want this one that + * comes from the java-gradle-plugin. + */ + afterEvaluate { + generatePomFileForPluginMavenPublication.enabled = false + } }