Skip to content

Commit

Permalink
Add jcenter upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt committed Apr 10, 2018
1 parent e1c5ba8 commit 50df3df
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 10 deletions.
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
42 changes: 42 additions & 0 deletions clikt/build.gradle
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit 50df3df

Please sign in to comment.