diff --git a/ethereumj-core/build.gradle b/ethereumj-core/build.gradle index a338579c..f456aef6 100644 --- a/ethereumj-core/build.gradle +++ b/ethereumj-core/build.gradle @@ -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 +}