From 38fc48d18cf5b2936df73361cb47b3dbf32d436e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Muller?= Date: Thu, 31 Oct 2024 13:27:45 +0100 Subject: [PATCH] Use property instead of configuring the task --- build.gradle.kts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 78fdb46f0..3f6db7774 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 { @@ -18,13 +17,13 @@ plugins { alias(libs.plugins.pillarbox.detekt) } -tasks.withType { - 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