diff --git a/api/build.gradle b/api/build.gradle index 97e979c..5cd1b5f 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -62,6 +62,21 @@ signing { sign configurations.archives } +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 +} + dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.google.code.gson:gson:2.3.1' diff --git a/compiler/build.gradle b/compiler/build.gradle index 62550a9..f5d25a3 100644 --- a/compiler/build.gradle +++ b/compiler/build.gradle @@ -63,6 +63,21 @@ signing { sign configurations.archives } +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 +} + dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile project(':api')