Skip to content

Commit

Permalink
adding javadoc and sources publications
Browse files Browse the repository at this point in the history
  • Loading branch information
albertlatacz committed Dec 1, 2016
1 parent 92ed994 commit 7c7a0ee
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ repositories {
maven { url "http://repo.bodar.com" }
}

task javadocsJar(type: Jar, dependsOn: shadowJar) {
from javadoc
baseName = 'javarepl'
classifier = 'javadoc'
}

task sourcesJar(type: Jar, dependsOn: shadowJar) {
baseName = 'javarepl'
classifier = 'sources'
from sourceSets.main.allSource
}

publishing {
repositories {
jcenter()
Expand All @@ -28,10 +40,18 @@ publishing {
}
}

artifacts {
archives javadocsJar
archives sourcesJar
}



bintray {
user = System.getenv("BINTRAY_USERNAME")
key = System.getenv("BINTRAY_API_KEY")
publications = ['shadow']
configurations = ['archives']
publish = true

pkg {
Expand Down

0 comments on commit 7c7a0ee

Please sign in to comment.