Ensure the sources jar gets uploaded to bintray

Fixes #195
This commit is contained in:
R. Tyler Croy 2015-09-16 09:15:36 -07:00
parent abd9afafbd
commit cced0fdc81
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
4 changed files with 11 additions and 4 deletions

View File

@ -54,10 +54,6 @@ subprojects {
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
plugins.withType(JavaPlugin) {
sourceCompatibility = 1.7
targetCompatibility = 1.7

View File

@ -125,6 +125,10 @@ publishing {
artifactId project.archivesBaseName
version project.version
artifact sourcesJar {
classifier "sources"
}
from components.java
}
}

View File

@ -82,6 +82,9 @@ task installGroovyDoc (type : Copy) {
onlyIf { project.hasProperty('jrubyGradleWebsiteInstallDir') }
}
artifacts {
archives sourcesJar
}
bintray {
user = project.bintrayUser

View File

@ -12,6 +12,10 @@ dependencies {
}
}
artifacts {
archives sourcesJar
}
bintray {
user = project.bintrayUser
key = project.bintrayKey