Skip to content

A Gradle plugin that decorates the build logs with maven coordinates of artifacts published with `publish` or `publishToMavenLocal`

License

Notifications You must be signed in to change notification settings

gmazzo/gradle-report-publications-plugin

Repository files navigation

GitHub Gradle Plugin Portal Build Status Coverage Users

gradle-report-publications-plugin

A Gradle plugin that decorates the build logs with maven coordinates of artifacts published with publish or publishToMavenLocal

Usage

Apply the plugin at the root project (preferable):

plugins {
    id("io.github.gmazzo.publications.report") version "<latest>" 
}

Then, whenever you call Maven Publish task (usually publish or publishToMavenLocal) on any project, the plugin will decorate the build logs showing maven coordinates (GAV):

For instance, the demo project will print for publishToMavenLocal:

> Task :publishToMavenLocal

The following artifacts were published to mavenLocal(~/.m2/repository):
 - io.gmazzo.demo:demo:0.1.0 jar
 - io.gmazzo.demo:module1:0.1.0 jar
 - io.gmazzo.demo:module2:0.1.0 jar
 - io.gmazzo.demo.build-logic:build-logic:0.1.0 jar
 - io.gmazzo.demo.build-logic:otherModule:0.1.0 jar

./gradlew publishToMavenLocal output example

Note

This plugin can gather publications from includedBuilds too. But it also needs to be applied at the root project of the includedBuild to work properly.

About

A Gradle plugin that decorates the build logs with maven coordinates of artifacts published with `publish` or `publishToMavenLocal`

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages