Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple artifacts with the identical extension and classifier #292

Open
langsmith opened this issue Jul 25, 2019 · 2 comments
Open

Multiple artifacts with the identical extension and classifier #292

langsmith opened this issue Jul 25, 2019 · 2 comments

Comments

@langsmith
Copy link

langsmith commented Jul 25, 2019

My work is happening at mapbox/mapbox-plugins-android#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
Copy link
Author

langsmith commented Jul 25, 2019

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
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants