diff --git a/build.gradle b/build.gradle index 9a7a290e..565c8013 100644 --- a/build.gradle +++ b/build.gradle @@ -24,6 +24,7 @@ buildscript { classpath 'com.android.tools.build:gradle:3.3.1' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50" + classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.10.0" } } diff --git a/okdownload-kotlin-enhance/build.gradle b/okdownload-kotlin-enhance/build.gradle index 692cff18..fec5f369 100644 --- a/okdownload-kotlin-enhance/build.gradle +++ b/okdownload-kotlin-enhance/build.gradle @@ -1,5 +1,6 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' +apply plugin: 'org.jetbrains.dokka' android { compileSdkVersion rootProject.ext.compileSdkVersion @@ -35,6 +36,16 @@ dependencies { compileOnly project(':okdownload') } +dokka { + outputFormat = 'html' + outputDirectory = "$buildDir/docs/javadoc" +} + +tasks.withType(Javadoc).all { + excludes = ['**/*.kt'] + dependsOn dokka +} + apply from: rootProject.file('gradle/gradle-mvn-push.gradle') if (hasProperty("isCI")) { apply from: rootProject.file('gradle/codecov.gradle')