Skip to content
This repository was archived by the owner on Jun 28, 2019. It is now read-only.

Commit f9d3f30

Browse files
committed
Add JavaDoc tasks
1 parent 43845db commit f9d3f30

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

studyplus-android-sdk2/build.gradle

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,28 @@ dependencies {
4848
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
4949
testImplementation "com.squareup.okhttp3:mockwebserver:$okhttp"
5050
}
51+
52+
task sourcesJar(type: Jar) {
53+
classifier = 'sources'
54+
from android.sourceSets.main.java.sourceFiles
55+
}
56+
57+
task javadoc(type: Javadoc) {
58+
source = android.sourceSets.main.java.sourceFiles
59+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
60+
}
61+
62+
task javadocJar(type: Jar, dependsOn: javadoc) {
63+
classifier = 'javadoc'
64+
from javadoc.destinationDir
65+
}
66+
67+
task classesJar(type: Jar) {
68+
from "$buildDir/intermediates/classes/release"
69+
}
70+
71+
artifacts {
72+
archives classesJar
73+
archives javadocJar
74+
archives sourcesJar
75+
}

0 commit comments

Comments
 (0)