[solved] hello! while publishing Gradle plugin to ...
# gradle
d
[solved] hello! while publishing Gradle plugin to Maven Central (also publishing to Plugin Portall) I noticed that generated plugin descriptor was incorrectly published with sources and javadoc of the actual plugin (https://search.maven.org/search?q=g:com.expediagroup.graphql) Sources+Javadoc for both plugin and plugin descriptor are attached here -> https://github.com/ExpediaGroup/graphql-kotlin/blob/master/build.gradle.kts#L163. Any suggestions on the check there to ensure plugin descriptor doesn’t get sources? Tried doing a simple check for
artifactId
but both plugin and its descriptor share same id (they differ in values in generated pom files). Also tried checking for packaging -> i.e.
if (pom.packaging != "pom")
but that results in
Cannot publish module metadata where component artifacts are modified.
Any ideas?
looks like checking publication name worked fine
129 Views