Skip to content

Commit

Permalink
Merge pull request #328 from lingochamp/fix/kotlin_doc
Browse files Browse the repository at this point in the history
chore: fix kotlin doc
  • Loading branch information
Jacksgong authored Oct 31, 2019
2 parents 75ae244 + 83f9b7a commit 86caf12
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down
11 changes: 11 additions & 0 deletions okdownload-kotlin-enhance/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'org.jetbrains.dokka'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 86caf12

Please sign in to comment.