Skip to content

Commit

Permalink
Merge pull request #21 from ToxicBakery/feature/update-dependencies
Browse files Browse the repository at this point in the history
Fixed missing Android classes from GH documentation
  • Loading branch information
ToxicBakery authored Feb 16, 2021
2 parents f0c388d + 67d540c commit 2e09972
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ kotlin {
}
}

dependencies {
dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.4.20")
}

task jacocoTestReportJvm(type: JacocoReport, group: 'jacoco') {
def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
def commonTree = fileTree(dir: "$buildDir/classes/kotlin/common/main", excludes: fileFilter)
Expand Down Expand Up @@ -144,6 +140,13 @@ task cleanGhPages(type: Delete, group: 'build') {

task dokkaGhPages(type: org.jetbrains.dokka.gradle.DokkaTask, group: 'documentation') {
outputDirectory = file("${project.projectDir}/gh-pages")
dokkaSourceSets {
register("android") {
displayName.set("Android")
platform.set(org.jetbrains.dokka.Platform.jvm)
sourceRoots.from(project(":android").kotlin.sourceSets.getByName("androidMain").kotlin.srcDirs)
}
}
}

task emptySourcesJar(type: Jar, group: 'publishing') {
Expand Down

0 comments on commit 2e09972

Please sign in to comment.