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.
This commit is contained in:
Roy Clarkson
2020-06-08 11:00:55 -04:00
committed by Roy Clarkson
parent d33e84930f
commit 1b84af1557

View File

@@ -65,6 +65,12 @@ configure(allprojects) {
apply plugin: "propdeps-eclipse"
apply plugin: "io.spring.dependency-management"
afterEvaluate { subproject ->
if (subproject.description == null || subproject.description.isEmpty()) {
throw new InvalidUserDataException("A project description is required for publishing to maven central")
}
}
apply from: "${rootProject.projectDir}/publish-maven.gradle"
repositories {