Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Demonstrated how pom can be customized
Browse files Browse the repository at this point in the history
Needed for mockito/shipkit#755

Not intended to be checked in
  • Loading branch information
Mockito Release Tools committed Oct 24, 2018
1 parent 9903508 commit 7671487
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions gradle/shipkit.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 7671487

Please sign in to comment.