Add dokka to generate javadocs
plugins {
id 'com.android.library'
+ id("org.jetbrains.dokka") version "1.5.0"
}
+
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
@@ -70,6 +72,7 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
implementation "androidx.core:core-ktx:1.3.2"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+ dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.5.0")
}
ext {
@@ -86,3 +89,4 @@ if (getGradle().getStartParameter().getTaskRequests().toString().contains("relea
getGradle().getStartParameter().getTaskRequests().toString().contains("closeAndReleaseRepository")) {
apply from: "../gradle/publish-mavencentral.gradle"
}
+
