bintray-release

A helper for releasing from gradle up to bintray

Github星跟踪图

bintray-release Download

Super duper easy way to release your Android and other artifacts to bintray.

Description

This is a helper for releasing libraries to bintray. It is intended to help configuring stuff related to maven and bintray.
At the moment it works with Android Library projects, plain Java and plain Groovy projects, but our focus is to mainly support Android projects.

Adding to project

To publish a library to bintray using this plugin, add these dependencies to the build.gradle of the module that will be published:

apply plugin: 'com.novoda.bintray-release' // must be applied after your artifact generating plugin (eg. java / com.android.library)

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.novoda:bintray-release:<latest-version>'
    }
}

Simple usage

Use the publish closure to set the info of your package:

publish {
    userOrg = 'novoda'
    groupId = 'com.novoda'
    artifactId = 'bintray-release'
    publishVersion = '0.6.1'
    desc = 'Oh hi, this is a nice description for a project, right?'
    website = 'https://github.com/novoda/bintray-release'
}

If you use Kotlin DSL use:

import com.novoda.gradle.release.PublishExtension

configure<PublishExtension> {
  userOrg = "novoda"
  groupId = "com.novoda"
  artifactId = "bintray-release"
  publishVersion = "0.6.1"
  desc = "Oh hi, this is a nice description for a project, right?"
  website = "https://github.com/novoda/bintray-release"
}

Finally, use the task bintrayUpload to publish (make sure you build the project first!):

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

More info on the available properties and other usages in the Github Wiki.

Gradle compatibility

The plugin officially supports only Gradle 4.0+

Snapshots

CI status Download from Bintray

Snapshot builds from develop are automatically deployed to a repository that is not synced with JCenter.
To consume a snapshot build add an additional maven repo as follows:

repositories {
    maven {
        url 'https://dl.bintray.com/novoda-oss/snapshots/'
    }
}

You can find the latest snapshot version following this link.

Here are a list of useful links:

  • We always welcome people to contribute new features or bug fixes, here is how
  • If you have a problem check the Issues Page first to see if we are working on it
  • For further usage or to delve more deeply checkout the Project Wiki
  • Looking for community help, browse the already asked Stack Overflow Questions or use the tag: support-bintray-release when posting a new question

主要指标

概览
名称与所有者novoda/bintray-release
主编程语言Groovy
编程语言Groovy (语言数: 2)
平台
许可证Other
所有者活动
创建于2014-10-16 17:04:56
推送于2022-02-11 06:01:47
最后一次提交2022-02-11 00:01:47
发布数25
最新版本名称0.9.2 (发布于 )
第一版名称0.1.0 (发布于 )
用户参与
星数1.8k
关注者数74
派生数209
提交数444
已启用问题?
问题数215
打开的问题数0
拉请求数83
打开的拉请求数0
关闭的拉请求数34
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?