From 314a8e1198bfcbc4c326645ce531951c9fffc40c Mon Sep 17 00:00:00 2001 From: Shreck Ye Date: Wed, 6 Nov 2024 10:17:35 +0800 Subject: [PATCH] Resolve the Dokka "could not resolve" issue with the official solution A source commit: https://github.com/huanshankeji/gradle-common/commit/c1c69c36fc82be8876c516a3dc06570f1271d857 --- build.gradle.kts | 5 ----- settings.gradle.kts | 8 ++++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 4b8dba2..8877da2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,11 +6,6 @@ plugins { id("org.jetbrains.dokka") } -// workaround for https://github.com/Kotlin/dokka/issues/3903 from https://github.com/Kotlin/dokka/issues/2260 TODO remove when it's fixed -repositories { - mavenCentral() -} - dependencies { listOf( "compose-html-common", diff --git a/settings.gradle.kts b/settings.gradle.kts index 9cedcae..799d5f2 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -5,3 +5,11 @@ include("compose-html-material-legacy") include("compose-html-material3") include("gradle-plugins") project(":gradle-plugins").name = "compose-html-material-gradle-plugins-legacy" + +// for Dokka +@Suppress("UnstableApiUsage") +dependencyResolutionManagement { + repositories { + mavenCentral() + } +}