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:
committed by
Roy Clarkson
parent
d33e84930f
commit
1b84af1557
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user