aboutsummaryrefslogtreecommitdiff
path: root/java/android/OlmLibSdk/olm-sdk/build.gradle
diff options
context:
space:
mode:
authorpedroGitt <pedro.contreiras@amdocs.com>2016-10-26 18:15:37 +0200
committerpedroGitt <pedro.contreiras@amdocs.com>2016-10-26 18:15:37 +0200
commit6204fcd128279f876723eb2afefb6d278830465f (patch)
treef5f4905e82d566fb7bd59175f5b4cee0051e2c71 /java/android/OlmLibSdk/olm-sdk/build.gradle
parentd6824a4f499e83a31181b22b8be1e31ce1670277 (diff)
Add javadoc auto generation:
- add a buildJavaDoc task in build.gradle - update classes javadoc headers
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() {