mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-13 22:03:33 +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 {
|
||||
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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user