Skip to content

Commit

Permalink
Migrate Dokka to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sebaslogen committed Dec 25, 2024
1 parent 8efffba commit 9ea9dd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 1 addition & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import com.vanniktech.maven.publish.SonatypeHost
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
import org.jetbrains.dokka.gradle.DokkaTaskPartial
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
Expand Down Expand Up @@ -64,12 +63,10 @@ tasks.withType<DokkaMultiModuleTask>().configureEach {
// Must be afterEvaluate or else com.vanniktech.maven.publish will overwrite our
// dokka and version configuration.
afterEvaluate {
tasks.withType<DokkaTaskPartial>().configureEach {
dokka {
dokkaSourceSets.configureEach {
jdkVersion = 17
failOnWarning = true
skipDeprecated = true
suppressInheritedMembers = true
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ defaultVersion=1.0.0
desc=Android library to scope ViewModels to a Composable, surviving configuration changes and navigation
license=MIT license
creationYear=2021
githubRepo=sebaslogen/resaca
githubRepo=sebaslogen/resaca

# Dokka V2 experiment migration flags
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true

0 comments on commit 9ea9dd7

Please sign in to comment.