Provide a bom that manages all modules

Closes gh-831
This commit is contained in:
Andy Wilkinson
2022-07-15 15:22:07 +01:00
parent 3ae44e07b3
commit bdba92efe7
4 changed files with 23 additions and 3 deletions

View File

@@ -87,8 +87,6 @@ subprojects { subproject ->
}
plugins.withType(MavenPublishPlugin) {
subproject.apply from: "${rootProject.projectDir}/gradle/publish-maven.gradle"
javadoc {
description = "Generates project-level javadoc for use in -javadoc jar"
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED
@@ -107,7 +105,9 @@ subprojects { subproject ->
}
}
}
plugins.withType(MavenPublishPlugin) {
subproject.apply from: "${rootProject.projectDir}/gradle/publish-maven.gradle"
}
tasks.withType(GenerateModuleMetadata) {
enabled = false
}

View File

@@ -21,6 +21,9 @@ plugins.withType(MavenPublishPlugin) {
}
}
}
project.plugins.withType(JavaPlatformPlugin) {
from components.javaPlatform
}
pom {
name = project.provider { project.description }
description = project.provider { project.description }

View File

@@ -35,6 +35,7 @@ settings.gradle.projectsLoaded {
include "docs"
include "spring-restdocs-asciidoctor"
include "spring-restdocs-bom"
include "spring-restdocs-core"
include "spring-restdocs-mockmvc"
include "spring-restdocs-platform"

View File

@@ -0,0 +1,16 @@
plugins {
id "java-platform"
id "maven-publish"
}
description = "Spring REST Docs Bill of Materials"
dependencies {
constraints {
api(project(":spring-restdocs-asciidoctor"))
api(project(":spring-restdocs-core"))
api(project(":spring-restdocs-mockmvc"))
api(project(":spring-restdocs-restassured"))
api(project(":spring-restdocs-webtestclient"))
}
}