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:
parent
abb1ad8956
commit
90592dc267
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue