From cf2a7fcd0880a8d276970124cdb5d5845d5631fe Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Tue, 4 Jul 2017 16:08:03 -0700 Subject: Separate core components in its own module --- artifacts.gradle | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 artifacts.gradle (limited to 'artifacts.gradle') diff --git a/artifacts.gradle b/artifacts.gradle new file mode 100644 index 0000000..6db3cfb --- /dev/null +++ b/artifacts.gradle @@ -0,0 +1,25 @@ +apply plugin: 'com.github.dcendents.android-maven' + +// build a jar with source files +task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' +} + +task javadoc(type: Javadoc) { + failOnError false + source = android.sourceSets.main.java.sourceFiles + classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) + classpath += configurations.compile +} + +// build a jar with javadoc +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir +} + +artifacts { + archives sourcesJar + archives javadocJar +} \ No newline at end of file -- cgit v1.2.3