From 1b84af15573fe14d080384c24d08984c67960953 Mon Sep 17 00:00:00 2001 From: Roy Clarkson Date: Mon, 8 Jun 2020 11:00:55 -0400 Subject: [PATCH] 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. --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index f7030de..41276c4 100644 --- a/build.gradle +++ b/build.gradle @@ -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 {