Skip to content

Commit ddde62a

Browse files
qiiduansishu
authored and
duansishu
committed
chore: add gradle task to generate javadoc
1 parent c5a3f50 commit ddde62a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

library/scene/build.gradle

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ dependencies {
1616
api 'android.arch.lifecycle:runtime:1.1.0'
1717
}
1818

19-
19+
task javadoc(type: Javadoc) {
20+
source = android.sourceSets.main.java.srcDirs
21+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
22+
destinationDir = file("../javadoc/scene/")
23+
failOnError false
24+
}

library/scene_ui/build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@ dependencies {
1616
compile project(path: ':library:scene')
1717
}
1818

19+
task javadoc(type: Javadoc) {
20+
source = android.sourceSets.main.java.srcDirs
21+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
22+
destinationDir = file("../javadoc/scene_ui/")
23+
failOnError false
24+
}

0 commit comments

Comments
 (0)