Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Configuration of the publish closure

Kid Nox edited this page Feb 24, 2018 · 9 revisions

Configuration

$ ./gradlew clean build bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false

The publish closure contains all these properties. The default values are empty unless specified otherwise:

  • userOrg: Contains the organisation name to use for upload.
  • repoName: The repository name. Set to 'maven' by default.
  • groupId: The group id to use for the upload.
  • artifactId: The artifact id to use.
  • publishVersion: A string with the version to use. Can't end with -SNAPSHOT because bintray doesn't accept snapshots.
  • licences: A list of license identifiers for the project. Identifiers can be found here: http://spdx.org/licenses/ and default value is ['Apache-2.0'].
  • uploadName: The display name for this package in bintray. If not set, the artifactId will be used for this.
  • desc: A short description for this package in bintray.
  • website: A string with the url for the website of this project. The Github repo can be used here.
  • issueTracker: The url of the issue tracker for the project. If the website contains 'github.com' then this property is set to "${website}/issues" by default.
  • repository: The url of the vcs for this project. If the website contains 'github.com' then this is set to "${website}.git" by default.
  • autoPublish: This boolean defines if the package will be published when uploaded. If this is false, the package will still be uploaded to bintray but you'll have to publish it manually. Default value is true.
  • bintrayUser: The username to be used to upload.
  • bintrayKey: The bintray API key for the user account. Explanation of where to find this value can be found here https://bintray.com/docs/usermanual/starting/starting_tutorial2uploading.html#_uploading_using_curl
  • dryRun: If set to true this will run everything but it won't upload the package to bintray. If false then it will upload normally.
  • publications: A list of publication names to use for the upload. The default value is ['maven'], which is a publication that this plugin creates for you. You can define your own publications, more info in the wiki page