Skip to content

Add license and SCM metadata to all published POMs#344

Open
mr-thierry wants to merge 2 commits into
jraska:masterfrom
mr-thierry:fix_pom_license_for_real_this_time_finger_crossed
Open

Add license and SCM metadata to all published POMs#344
mr-thierry wants to merge 2 commits into
jraska:masterfrom
mr-thierry:fix_pom_license_for_real_this_time_finger_crossed

Conversation

@mr-thierry
Copy link
Copy Markdown
Contributor

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.

I used Copilot to investigate why the previous fix did not work, and this is the change it suggested.

Use withType(MavenPublication) to apply the metadata to all publications generated by com.gradle.plugin-publish, including the marker publication.

Thierry Roy and others added 2 commits May 29, 2026 10:29
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>
Comment thread plugin/build.gradle
publishing {
publications {
pluginMaven(MavenPublication) {
withType(MavenPublication) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Copilot, pluginMaven is why the previous fix not working. It proposed to use withType instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant