hello! any idea why publish to sonatype would not ...
# gradle
d
hello! any idea why publish to sonatype would not include my custom plugin.jar? I’m publishing to both Maven Central and Plugin Portal and while last publish was successful I only got pom, javadoc and sources (from default maven publication) but no jar. My root project config: https://github.com/ExpediaGroup/graphql-kotlin/blob/master/build.gradle.kts#L172 <- I’m explicitly configuring
mavenJava
publication for all projects except Gradle plugin as it explicitly creates its own
pluginMaven
publication. Gradle plugin config: https://github.com/ExpediaGroup/graphql-kotlin/blob/master/plugins/graphql-kotlin-gradle-plugin/build.gradle.kts
publishToMavenLocal
correctly publishes the plugin jar so it would appear that
pluginMaven
publication already contains the jar -> any ideas? ~Should I just add
from(jarComponent)
to all MavenPublications~(doesn’t work - fails with Maven publication ‘pluginMaven’ cannot include multiple components)~?~
running publish in dry run i see
Copy code
:graphql-kotlin-gradle-plugin:publishPluginMavenPublicationToSonatypeRepository SKIPPED
:graphql-kotlin-gradle-plugin:publish SKIPPED
sonatype repo also includes .module artifact