Skip to content

Commit

Permalink
Use property instead of configuring the task
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Oct 31, 2024
1 parent 2909d29 commit 38fc48d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* Copyright (c) SRG SSR. All rights reserved.
* License information is available from the LICENSE file.
*/
import org.jetbrains.dokka.gradle.tasks.DokkaGenerateTask

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
Expand All @@ -18,13 +17,13 @@ plugins {
alias(libs.plugins.pillarbox.detekt)
}

tasks.withType<DokkaGenerateTask> {
generator.includes.from("dokka/Pillarbox.md")
}

dokka {
moduleVersion = providers.environmentVariable("VERSION_NAME").orElse("dev")

dokkaPublications.html {
includes.from("dokka/Pillarbox.md")
}

pluginsConfiguration.html {
// See the overridable images here:
// https://github.com/Kotlin/dokka/tree/master/dokka-subprojects/plugin-base/src/main/resources/dokka/images
Expand Down

0 comments on commit 38fc48d

Please sign in to comment.