Skip to content

Commit f10a8c1

Browse files
author
Hussein Aladeen
committed
feat(project): Start generating sources artifacts
1 parent 3423e74 commit f10a8c1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

flowr/build.gradle

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,27 @@ dependencies {
3434
testCompile testLibraries.junit
3535
testCompile testLibraries.mockito
3636
}
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

Comments
 (0)