From a90fb09919afe6380ae363d096e0e876c16ffbc8 Mon Sep 17 00:00:00 2001 From: Shreck Ye Date: Wed, 6 Nov 2024 09:56:07 +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 | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 3a414db..c5588d5 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 { dokka(project(":exposed-adt-mapping")) } diff --git a/settings.gradle.kts b/settings.gradle.kts index 08558d5..1cd2e11 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -6,3 +6,10 @@ plugins { rootProject.name = "exposed-adt-mapping" include("lib") project(":lib").name = rootProject.name + +@Suppress("UnstableApiUsage") +dependencyResolutionManagement { + repositories { + mavenCentral() + } +}