diff --git a/graphenej/build.gradle b/graphenej/build.gradle index 8f3e666..507ee86 100644 --- a/graphenej/build.gradle +++ b/graphenej/build.gradle @@ -37,3 +37,23 @@ dependencies { compile 'com.jakewharton.rxrelay2:rxrelay:2.0.0' compile 'com.squareup.okhttp3:okhttp:3.5.0' } + +task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' +} + +task javadoc(type: Javadoc) { + source = android.sourceSets.main.java.srcDirs + classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) +} + +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir +} + +artifacts { + archives javadocJar + archives sourcesJar +} \ No newline at end of file