Comments (3)
Hi Dorian,
You don't have to specify all of the plugin configuration if it already exists in Bintray.
The plugin code checks if the package exists already and only if does not exist, it will use the data (the licenses for example) to create the package.
I used the below closure, first with the lines uncommitted to create the package, and then commented them to upload a new version and it worked:
bintray {
user = bintrayUser
key = bintrayKey
publications = ['mavenJava']
pkg {
repo = repoName
name = pkgName
// desc = pkgDesc
// labels = pkgLabels
// licenses = ['Apache-2.0']
// websiteUrl = 'https://github.com/bintray/gradle-bintray-plugin'
// issueTrackerUrl = 'https://github.com/bintray/gradle-bintray-plugin/issues'
// vcsUrl = 'https://github.com/bintray/gradle-bintray-plugin.git'
version {
name = versionName
}
}
}
from gradle-bintray-plugin.
Thats great thanks :) Would be good if this was reflected in the docs as was not clear, to me at least!
from gradle-bintray-plugin.
Thanks for the feedback.
Added the below comment in the example before the pkg closure.
//Package configuration. The plugin will use the repo and name properties to check if the package already exists. In that case, there's no need to configure the other package properties (like userOrg, desc, etc).
pkg {
repo = 'myrepo'
name = 'mypkg'
...
from gradle-bintray-plugin.
Related Issues (20)
- Classloader issues with version 1.8.4
- Plugin uploads artifact with the version from cmake HOT 1
- Feature Request: allow updating a published version to allow multi-platform releases HOT 3
- Flaky error - NoHttpResponseException: api.bintray.com:443 failed to respond
- Make BintrayPublishTask more friendly (have to use reflection) HOT 4
- No Jar Files Downloaded when Uploaded Library Applied as gradle dependencies HOT 1
- 'com.jfrog.bintray.gradle.tasks.BintrayUploadTask_Decorated' to class 'com.jfrog.bintray.gradle.tasks.BintrayUploadTask' HOT 1
- Fail to upload to bintray from subproject HOT 3
- Maven central sync credentials
- Importing from MavenLocal works but not from remote (lintPublish dependency) HOT 3
- Farzadsalahshour.salahshour
- Publish task is flaky for a large project
- Publish failing with 400 error but no debugging information HOT 3
- NPE trying to publish modules that donβt need to be published
- I would like to ask, what does 1 TB Downloads mean for an Open Source account?
- Cannot sync Bintray artifacts to JCenter: "POM project file is not valid" HOT 2
- Partial publications when subproject's bintrayUpload fails
- How to configure Kotlin multiplatform mobile library for bintray upload
- Gradle plugins should be published via the Gradle publish plugin
- Could not find org.codehaus.groovy.modules.http-builder:http-builder:0.7.2. HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-bintray-plugin.