bintray / gradle-bintray-plugin

Apache License 2.0
1.28k stars 197 forks source link

Multiple artifacts with the identical extension and classifier #292

Open langsmith opened 5 years ago

langsmith commented 5 years ago

My work is happening at https://github.com/mapbox/mapbox-plugins-android/pull/961 as I try to transition https://github.com/mapbox/mapbox-plugins-android to Bintray publishing with this plugin.

I'm trying to publish various modules as separate library packages to the same Bintray account. For example, https://bintray.com/mapbox/mapbox/mapbox-android-plugin-building-v8.

For example:

make build-release works fine for building all of the plugins: https://github.com/mapbox/mapbox-plugins-android/blob/ls-moving-release-process-to-bintray/Makefile#L19

But I'm getting the following error, when I run make publish (https://github.com/mapbox/mapbox-plugins-android/blob/ls-moving-release-process-to-bintray/Makefile#L27) :

Execution failed for task ':plugin-annotation:publishMapboxPluginPublicationPublicationToMavenLocal'.
> Failed to publish publication 'MapboxPluginPublication' to repository 'mavenLocal'
   > Invalid publication 'MapboxPluginPublication': multiple artifacts with the identical extension and classifier ('jar', 'sources').

Screen Shot 2019-07-25 at 11 02 05 AM

At one point, my pr was set up in a certain way to create the package page on Bintray for the various plugins that I'm trying to publish.

However, when you click on a specific release, it doesn't have any files in it:

I tried searching for multiple artifacts with the identical extension and classifier on Google, but haven't found anything very useful.

Do I need multiple MavenPublications rather than just one in gradle/gradle-bintray.gradle?

https://github.com/bintray/gradle-bintray-plugin/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+multiple didn't show any tickets that were about my current questions and issues.

Anyone able to provide any advice? @eyalbe4?

langsmith commented 5 years ago

When I try to publish a specific plugin, such as make publish-building, I get the same error:

Screen Shot 2019-07-25 at 12 00 56 PM

peytonwupeixin commented 3 years ago

@langsmith The same error occur when I set the version value of kotlinStdLib and kotlin to 1.4.30,then I revert them to 1.4.21 it will work.