Skip to content

Commit

Permalink
Add jcenter distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt committed Apr 18, 2018
1 parent a7b2043 commit 5d18d19
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ With the exception of long custom tags, none of the errors those checks look for

## Download

The Kotlin extensions for Timber are distributed with [JitPack](https://jitpack.io/#ajalt/timberkt/1.4.0).
The Kotlin extensions for Timber are distributed with [JCenter](https://bintray.com/ajalt/maven/timberkt) and
[JitPack](https://jitpack.io/#ajalt/timberkt/1.4.0).

```groovy
repositories {
maven { url "https://jitpack.io" }
}
Make sure one either JCenter or JitPack is included in your repository
list, then you can add timberkt to your project:

```groovy
implementation 'com.github.ajalt:timberkt:1.4.0'
```

Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ buildscript {
ext.deps = [
buildscript : [
dokka: 'org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.16',
bintray: 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0',
],

// library dependencies
Expand Down
44 changes: 44 additions & 0 deletions timberkt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'org.jetbrains.dokka-android'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

buildscript {
dependencies {
classpath deps.buildscript.dokka
classpath deps.buildscript.bintray
}
}

Expand Down Expand Up @@ -49,3 +51,45 @@ artifacts {
archives sourcesJar
archives javadocJar
}

install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
scm {
connection "https://github.com/ajalt/timberkt.git"
url "https://github.com/ajalt/timberkt"
}
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 = 'timberkt'
licenses = ['Apache-2.0']
vcsUrl = "https://github.com/ajalt/timberkt.git"

version {
name = project.version
desc = project.description
released = new Date()
vcsTag = project.version
}
}
}

0 comments on commit 5d18d19

Please sign in to comment.