Skip to content

Commit 1b84af1

Browse files
committed
Add check to fail build if a submodule is missing a description
A description must be provided in order to produce the correct metadata that is required by maven central.
1 parent d33e849 commit 1b84af1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ configure(allprojects) {
6565
apply plugin: "propdeps-eclipse"
6666
apply plugin: "io.spring.dependency-management"
6767

68+
afterEvaluate { subproject ->
69+
if (subproject.description == null || subproject.description.isEmpty()) {
70+
throw new InvalidUserDataException("A project description is required for publishing to maven central")
71+
}
72+
}
73+
6874
apply from: "${rootProject.projectDir}/publish-maven.gradle"
6975

7076
repositories {

0 commit comments

Comments
 (0)