Create Jar artifact with test code

This commit is contained in:
Florian Schmaus 2014-08-12 21:58:04 +02:00
parent 47a59ad7b3
commit 7436a16d09
1 changed files with 5 additions and 0 deletions

View File

@ -148,9 +148,14 @@ subprojects {
classifier = 'javadoc' classifier = 'javadoc'
from javadoc.destinationDir from javadoc.destinationDir
} }
task testJar(type: Jar) {
classifier = 'tests'
from sourceSets.test.output
}
artifacts { artifacts {
archives sourcesJar archives sourcesJar
archives javadocJar archives javadocJar
archives testJar
} }
uploadArchives { uploadArchives {