Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 7d025e0

Browse files
committed
build: require project description for modules that are published to maven central
1 parent 248470c commit 7d025e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ subprojects {
131131
}
132132
}
133133

134+
project.afterEvaluate {
135+
if (project.plugins.hasPlugin("com.vanniktech.maven.publish.base") && project.description.isNullOrBlank()) {
136+
throw GradleException("Project ${project.path} must have a description")
137+
}
138+
}
139+
134140
plugins.withId("com.vanniktech.maven.publish.base") {
135141
configure<MavenPublishBaseExtension> {
136142

0 commit comments

Comments
 (0)