From 7671487643308bcdfb31e0e9efc66275b2430267 Mon Sep 17 00:00:00 2001 From: Mockito Release Tools Date: Wed, 24 Oct 2018 08:22:00 -0700 Subject: [PATCH] Demonstrated how pom can be customized Needed for https://github.com/mockito/shipkit/issues/755 Not intended to be checked in --- gradle/shipkit.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gradle/shipkit.gradle b/gradle/shipkit.gradle index ac2317f..8e51dc9 100644 --- a/gradle/shipkit.gradle +++ b/gradle/shipkit.gradle @@ -20,6 +20,20 @@ allprojects { } } } + + plugins.withId("org.shipkit.java-publish") { + publishing.publications.javaLibrary.pom.withXml { + //refer to Groovy xml Node reference for more info how to manipulate xml + asNode().licenses.replaceNode { + licenses { + license { + name "Eclipse Public License v2.0" + url "http://www.eclipse.org/legal/epl-v20.html" + } + } + } + } + } } apply plugin: 'org.shipkit.upgrade-dependency'