From d8c94475913d98fa0ca393568f07a7e27d35c5d7 Mon Sep 17 00:00:00 2001 From: Thierry Roy Date: Fri, 29 May 2026 10:29:25 -0400 Subject: [PATCH] Add license and SCM metadata to all published POMs The marker POM (com.jraska.module.graph.assertion.gradle.plugin) was missing license and SCM information, causing internal compliance tools to flag the plugin as unlicensed. Use withType(MavenPublication) to apply the metadata to all publications generated by com.gradle.plugin-publish, including the marker publication. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- plugin/build.gradle | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/plugin/build.gradle b/plugin/build.gradle index 2fe0209..16da969 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -48,3 +48,24 @@ gradlePlugin { } } } + +publishing { + publications { + withType(MavenPublication) { + pom { + licenses { + license { + name = 'The Apache Software License, Version 2.0' + url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' + distribution = 'repo' + } + } + scm { + connection = 'scm:git:git://github.com/jraska/modules-graph-assert.git' + developerConnection = 'scm:git:ssh://git@github.com/jraska/modules-graph-assert.git' + url = 'https://github.com/jraska/modules-graph-assert' + } + } + } + } +}