Skip to content

Commit

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

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

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

Expand All @@ -36,22 +32,24 @@ publishing {
groupId 'com.javarepl'
artifactId 'javarepl'
from components.shadow

artifact sourceJar {
classifier "sources"
}

artifact javadocJar {
classifier "javadoc"
}

}
}
}

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 Expand Up @@ -88,6 +86,22 @@ bintray {
}
}




shadowJar {
baseName = "javarepl"
classifier = null

relocate 'com.googlecode.totallylazy', 'javarepl.internal.totallylazy'
relocate 'com.googlecode.lazyparsec', 'javarepl.internal.lazyparsec'
relocate 'com.googlecode.utterlyidle', 'javarepl.internal.utterlyidle'
relocate 'com.googlecode.yadic', 'javarepl.internal.yadic'
relocate 'jline', 'javarepl.internal.jline'


}

sourceSets {
main {
java {
Expand All @@ -107,20 +121,6 @@ sourceSets {
}
}


shadowJar {
baseName = "javarepl"
classifier = null

relocate 'com.googlecode.totallylazy', 'javarepl.internal.totallylazy'
relocate 'com.googlecode.lazyparsec', 'javarepl.internal.lazyparsec'
relocate 'com.googlecode.utterlyidle', 'javarepl.internal.utterlyidle'
relocate 'com.googlecode.yadic', 'javarepl.internal.yadic'
relocate 'jline', 'javarepl.internal.jline'


}

jar {
manifest {
attributes 'Main-Class': 'javarepl.Main'
Expand Down

0 comments on commit b1a37ca

Please sign in to comment.