We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3423e74 commit f10a8c1Copy full SHA for f10a8c1
flowr/build.gradle
@@ -34,3 +34,27 @@ dependencies {
34
testCompile testLibraries.junit
35
testCompile testLibraries.mockito
36
}
37
+
38
+// build a jar with source files
39
+task sourcesJar(type: Jar) {
40
+ from android.sourceSets.main.java.srcDirs
41
+ classifier = 'sources'
42
+}
43
44
+task javadoc(type: Javadoc) {
45
+ failOnError false
46
+ source = android.sourceSets.main.java.sourceFiles
47
+ classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
48
+ classpath += configurations.compile
49
50
51
+// build a jar with javadoc
52
+task javadocJar(type: Jar, dependsOn: javadoc) {
53
+ classifier = 'javadoc'
54
+ from javadoc.destinationDir
55
56
57
+artifacts {
58
+ archives sourcesJar
59
+ archives javadocJar
60
0 commit comments