Remove some redundant tasks

This commit is contained in:
R. Tyler Croy 2015-08-14 20:52:54 -07:00
parent dafe339ba3
commit 5f03c5982d
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 7 additions and 17 deletions

View File

@ -77,23 +77,6 @@ plugins.withType(JavaPlugin) {
}
}
/* Add the sources jar to the list of artifacts to publish */
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task groovydocJar(type: Jar) {
dependsOn groovydoc
classifier = 'groovydoc'
from groovydoc.destinationDir
}
artifacts {
archives sourcesJar
archives groovydocJar
}
assemble.dependsOn check
assemble.dependsOn groovydocJar
assemble.dependsOn sourcesJar

View File

@ -5,8 +5,15 @@ task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
}
task groovydocJar(type: Jar) {
dependsOn groovydoc
classifier = 'groovydoc'
from groovydoc.destinationDir
}
artifacts {
archives sourcesJar
archives groovydocJar
}
bintray {