mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-14 06:13:30 +00:00
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:
parent
b95ccc211b
commit
f892746c00
@ -30,6 +30,18 @@ public class MavenBomTask extends DefaultTask {
|
|||||||
}
|
}
|
||||||
project.install {
|
project.install {
|
||||||
repositories.mavenInstaller {
|
repositories.mavenInstaller {
|
||||||
|
customizePom(pom)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
project.uploadArchives {
|
||||||
|
repositories.mavenDeployer {
|
||||||
|
customizePom(pom)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void customizePom(pom) {
|
||||||
pom.whenConfigured {
|
pom.whenConfigured {
|
||||||
packaging = "pom"
|
packaging = "pom"
|
||||||
withXml {
|
withXml {
|
||||||
@ -51,5 +63,3 @@ public class MavenBomTask extends DefaultTask {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user