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

How can I publish jar or zip file to bintray? #60

Open
volyx opened this issue Mar 4, 2015 · 2 comments
Open

How can I publish jar or zip file to bintray? #60

volyx opened this issue Mar 4, 2015 · 2 comments

Comments

@volyx
Copy link

volyx commented Mar 4, 2015

I have tried two variants, but couldn't understand what I must write in 'publications' variables?
{code}
//publications = ["mavenJava"]

filesSpec { 
    from 'build/distributions'
    into 'build/bintray'
    include '**/*.zip'
}

{code}

File tab in bintray is empty
http://i.gyazo.com/335061ba9003a72c1169bd4dd4c136d6.png

@eyalbe4
Copy link
Contributor

eyalbe4 commented Mar 8, 2015

The Bintray Gradle Plugin DSL allows you to configure the artifacts you wish to publish to Bintray using Gradle Publications (or Gradle Configurations).
The publications or configuration should be defined as part of your gradle build script (outside of the bintray closure), but their names should be referenced by the publications / configurations lists as part of the bintray closure, so that the plugin knows which publications/configurations to use.
You can can use the filesSpec closure instead as shown in the readme file instead.
We'll try to improve the description for the publications / configurations to make them clearer.

@eyalbe4
Copy link
Contributor

eyalbe4 commented Mar 8, 2015

Adding to my previous message, please note that only MavenPublication's can be used as publications for the plugin.

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