Add bom generation

- Create new module spring-security-kerberos-bom
  which handles bom generation via BomPlugin.
- Relates #165
This commit is contained in:
Janne Valkealahti
2023-03-21 18:01:26 +00:00
parent 985d5072da
commit cb41f1a280
4 changed files with 9 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ class BomPlugin implements Plugin<Project> {
pluginManager.apply(JavaPlatformPlugin.class);
new ArtifactoryConventions().apply(project);
// bom should have main shell modules and starters
// bom should have modules
DependencyConstraintHandler constraints = project.getDependencies().getConstraints();
project.getRootProject().getAllprojects().forEach(p -> {
p.getPlugins().withType(ModulePlugin.class, m -> {

View File

@@ -104,9 +104,9 @@ public class SpringMavenPlugin implements Plugin<Project> {
pom.issueManagement(this::customizeIssueManagement);
// TODO: find something better not to add dependencyManagement in pom
// which result spring-security-kerberos-management in it. spring-security-kerberos-dependencies
// which result spring-security-kerberos-management in it. spring-security-kerberos-bom
// has its own dependencyManagement which we need to keep
if (!project.getName().equals("spring-security-kerberos-dependencies")) {
if (!project.getName().equals("spring-security-kerberos-bom")) {
pom.withXml(xxx -> {
Node pomNode = xxx.asNode();
List<?> childs = pomNode.children();

View File

@@ -26,6 +26,7 @@ pluginManagement {
rootProject.name = 'spring-security-kerberos'
include 'spring-security-kerberos-management'
include 'spring-security-kerberos-bom'
include 'spring-security-kerberos-core'
include 'spring-security-kerberos-client'
include 'spring-security-kerberos-web'

View File

@@ -0,0 +1,5 @@
plugins {
id 'org.springframework.security.kerberos.bom'
}
description = 'Spring Security Kerberos BOM'