A Gradle plugin that decorates the build logs with maven coordinates of artifacts published with publish
or publishToMavenLocal
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
Note
This plugin can gather publications from includedBuild
s too.
But it also needs to be applied at the root project of the includedBuild
to work properly.