Add bom generation
- Create new module spring-security-kerberos-bom which handles bom generation via BomPlugin. - Relates #165
This commit is contained in:
@@ -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 -> {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
plugins {
|
||||
id 'org.springframework.security.kerberos.bom'
|
||||
}
|
||||
|
||||
description = 'Spring Security Kerberos BOM'
|
||||
Reference in New Issue
Block a user