uploadArchives customizePom for bom

Previously the bom was not being customized for the uploadArchives task.

This commit enhances the bom plugin to support uploadArchives.

Closes gh-7975
This commit is contained in:
Rob Winch 2020-03-30 09:46:38 -05:00
parent b95ccc211b
commit f892746c00

View File

@ -30,6 +30,18 @@ public class MavenBomTask extends DefaultTask {
}
project.install {
repositories.mavenInstaller {
customizePom(pom)
}
}
project.uploadArchives {
repositories.mavenDeployer {
customizePom(pom)
}
}
}
public void customizePom(pom) {
pom.whenConfigured {
packaging = "pom"
withXml {
@ -50,6 +62,4 @@ public class MavenBomTask extends DefaultTask {
}
}
}
}
}
}