You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2020/10/04 19:40:09 UTC

[lucene-solr] branch master updated: LUCENE-9561: workaround for POMs that have superfluous dependencyManagement section.

This is an automated email from the ASF dual-hosted git repository.

dweiss pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 34776ed  LUCENE-9561: workaround for POMs that have superfluous dependencyManagement section.
34776ed is described below

commit 34776ed6403ad3189af66d6568a3f3eb6d583853
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Sun Oct 4 21:39:58 2020 +0200

    LUCENE-9561: workaround for POMs that have superfluous dependencyManagement section.
---
 gradle/maven/defaults-maven.gradle | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gradle/maven/defaults-maven.gradle b/gradle/maven/defaults-maven.gradle
index a856990..2662a69 100644
--- a/gradle/maven/defaults-maven.gradle
+++ b/gradle/maven/defaults-maven.gradle
@@ -250,6 +250,17 @@ configure(subprojects.findAll { it.path in rootProject.published }) { prj ->
             artifact javadocJar
 
             pom(configurePom)
+
+            pom({
+              // LUCENE-9561:
+              // Remove dependencyManagement section created by a combination of
+              // Palantir and the publishing plugin.
+              //
+              // https://github.com/palantir/gradle-consistent-versions/issues/550
+              withXml {
+                asNode().dependencyManagement.replaceNode {}
+              }
+            })
           }
         }
       }