aboutsummaryrefslogtreecommitdiff
path: root/java/android/OlmLibSdk/olm-sdk/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'java/android/OlmLibSdk/olm-sdk/build.gradle')
-rw-r--r--java/android/OlmLibSdk/olm-sdk/build.gradle10
1 files changed, 8 insertions, 2 deletions
diff --git a/java/android/OlmLibSdk/olm-sdk/build.gradle b/java/android/OlmLibSdk/olm-sdk/build.gradle
index 2f92151..393342b 100644
--- a/java/android/OlmLibSdk/olm-sdk/build.gradle
+++ b/java/android/OlmLibSdk/olm-sdk/build.gradle
@@ -24,6 +24,13 @@ android {
jni.srcDirs = []
}
+ task buildJavaDoc(type: Javadoc) {
+ source = android.sourceSets.main.java.srcDirs
+ classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
+ destinationDir = file("./doc/")
+ failOnError false
+ }
+
task ndkBuildNativeRelease(type: Exec, description: 'NDK building..') {
println 'ndkBuildNativeRelease starts..'
workingDir file('src/main')
@@ -53,11 +60,10 @@ android {
println 'test compile: Release'
compileTask.dependsOn ndkBuildNativeRelease
}
+ compileTask.dependsOn buildJavaDoc
}
-
clean.dependsOn cleanNative
-
}
def getNdkFolder() {