diff --git a/build.gradle b/build.gradle index fda28b3..0700189 100644 --- a/build.gradle +++ b/build.gradle @@ -34,3 +34,19 @@ dependencies { task wrapper(type: Wrapper) { gradleVersion = '1.4' } + + +task sourcesJar(type: Jar, dependsOn: classes) { + classifier = 'sources' + from sourceSets.main.allSource +} + +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir +} + +artifacts { + archives sourcesJar + archives javadocJar +} \ No newline at end of file