Build -sources and -javadoc jars

Running `gradle build` within ethereumj-core will now produce -sources
and -javadoc jars in `build/libs`, alongside the already existing
classes jar. Run `gradle install` to install these artifacts to the
local `~/.m2` repository.
This commit is contained in:
Chris Beams 2014-12-27 14:04:46 +01:00
parent abb1ad8956
commit 90592dc267
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73
1 changed files with 15 additions and 0 deletions

View File

@ -75,3 +75,18 @@ javadoc {
"http://netty.io/4.0/api/"
)
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
classifier = "javadoc"
from javadoc
}
artifacts {
archives sourcesJar
archives javadocJar
}