Skip to content

Commit

Permalink
Merge branch 'mavencentral/pom' into publishv1
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto committed Feb 26, 2020
2 parents a3fa7ec + 9373801 commit d7bbefe
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ class ReleasePlugin implements Plugin<Project> {
publication.version = version

publication.pom { MavenPom pom ->
if (!extension.uploadName.isEmpty()) {
pom.name.set(extension.uploadName)
}
if (!extension.desc.isEmpty()) {
pom.description.set(extension.desc)
}
if (!extension.repository.isEmpty()) {
pom.url.set(extension.repository)
}

if (extension.licences != null && extension.licences.length >= 1 && extension.licenceUrls != null && extension.licenceUrls.length >= 1 ) {
pom.licenses { MavenPomLicenseSpec pomLicenseSpec ->
// take only the 1st for now
Expand Down

0 comments on commit d7bbefe

Please sign in to comment.