From 50df3df0d9c14633fba688210c48f96abc63964a Mon Sep 17 00:00:00 2001 From: AJ Alt Date: Tue, 10 Apr 2018 11:21:21 -0700 Subject: [PATCH] Add jcenter upload --- README.md | 15 +++++---------- clikt/build.gradle | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 4803aeef4..5ec1b319b 100755 --- a/README.md +++ b/README.md @@ -76,17 +76,12 @@ them with the included [`runsample` script](runsample). ## Installation -Clikt is distributed with [jitpack](https://jitpack.io/#ajalt/clikt). +Clikt is distributed with +[Jcenter](https://bintray.com/ajalt/maven/clikt) and +[Jitpack](https://jitpack.io/#ajalt/clikt). -First, add Jitpack to your gradle repositories. - -```groovy -repositories { - maven { url "https://jitpack.io" } -} -``` - -Then add the dependency on Clikt. +Make sure one either jcenter or jitpack is included in your repository +list, then you can add Clikt to your project: ```groovy dependencies { diff --git a/clikt/build.gradle b/clikt/build.gradle index f65aaef18..59a439aa8 100755 --- a/clikt/build.gradle +++ b/clikt/build.gradle @@ -1,5 +1,19 @@ apply plugin: 'org.jetbrains.dokka' apply plugin: 'maven' +apply plugin: 'com.jfrog.bintray' + +version = VERSION_NAME +group = GROUP + +buildscript { + repositories { + jcenter() + } + + dependencies { + classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0' + } +} dokka { outputDirectory = "$rootDir/docs/api" @@ -35,6 +49,34 @@ install { distribution 'repo' } } + scm { + connection "https://github.com/ajalt/clikt.git" + url "https://github.com/ajalt/clikt" + } + developers { + developer { + name 'AJ Alt' + } + } + } + } +} + +bintray { + user = project.hasProperty('bintray.user') ? project.property('bintray.user') : '' + key = project.hasProperty('bintray.apikey') ? project.property('bintray.apikey') : '' + configurations = ['archives'] + pkg { + repo = 'maven' + name = 'clikt' + licenses = ['Apache-2.0'] + vcsUrl = "https://github.com/ajalt/clikt.git" + + version { + name = project.version + desc = project.description + released = new Date() + vcsTag = project.version } } }