I'm trying to upload a new version of my Gradle Pl...
# plugin-development
r
I'm trying to upload a new version of my Gradle Plugin to the Gradle Plugin Portal (with the 1.2.2 publish-plugin). But I cannot seem to do this without getting error messages like: > Artifact nl.neotech.pluginandroid root coverage plugin1.9.0 with type jar:javadoc already in DB with a different hash > But I'm pretty sure that this version does not yet exist in the Plugin Portal, I previously thought this was caused by a duplicated javadoc .jar file (because I was using Dokka), but even after removing Dokka I keep getting these errors. Does any one have any pointers for me?
Some more info for a potential Gradle Engineer: I'm using both:
com.gradle.plugin-publish:1.2.2
and
com.vanniktech.maven.publish:0.29.0
(I previously used older versions). I'm also using Dokka (since I use Kotlin) to generate Javadocs,
plugin-publish
previously did not generate any javadocs on it's own. Notice that I'm not using the default configuration from
vanniktech.maven.publish
, instead:
configure(new GradlePlugin(new JavadocJar.Dokka("dokkaHtml")))
I did this because I don't want the default javadocs, but the Dokka docs. What I'm seeing is that with the above configuration I get duplicated javadocs being generated, it seems I cannot easily disable those generated by
gradle-publish
. This also seems to have lead to a failed upload to the Plugin Portal. I tried to reproduce by removing the duplicated javadocs, and the upload succeeded (although I had to increment the version number). Then I removed this version from the Gradle Portal, and tried again with the duplicated javadocs... now I'm stuck again, cannot remove that version cannot try again. This all leads to a few questions: • How can I recover those failed uploads? I want to upload 1.9.0 still (with Dokka javadocs) • How can I let the publication use Dokka javadocs and not the default one (without too much hackery).