Skip to content

Commit a0e8888

Browse files
committed
Build: Stop double generating buildSrc pom (#32408)
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.
1 parent 12cf0fd commit a0e8888

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

buildSrc/build.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,12 @@ if (project != rootProject) {
183183
testClass = 'org.elasticsearch.gradle.test.GradleUnitTestCase'
184184
integTestClass = 'org.elasticsearch.gradle.test.GradleIntegrationTestCase'
185185
}
186+
187+
/*
188+
* We alread configure publication and we don't need or want this one that
189+
* comes from the java-gradle-plugin.
190+
*/
191+
afterEvaluate {
192+
generatePomFileForPluginMavenPublication.enabled = false
193+
}
186194
}

0 commit comments

Comments
 (0)