From c99f0dbb5c6d99056e5237bfbd8472f1460be001 Mon Sep 17 00:00:00 2001 From: Nek-12 Date: Thu, 30 May 2024 14:56:55 +0300 Subject: [PATCH] remove ivy repo hack --- settings.gradle.kts | 59 +-------------------------------------------- 1 file changed, 1 insertion(+), 58 deletions(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index 076ca76..9647f41 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -24,71 +24,14 @@ pluginManagement { dependencyResolutionManagement { // kmm plugin adds "ivy" repo as part of the apply block - repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS) + repositoriesMode.set(RepositoriesMode.PREFER_PROJECT) repositories { google() - ivyNative() - node() mavenCentral() } } -fun RepositoryHandler.node() { - exclusiveContent { - forRepository { - ivy("https://nodejs.org/dist/") { - name = "Node Distributions at $url" - patternLayout { artifact("v[revision]/[artifact](-v[revision]-[classifier]).[ext]") } - metadataSources { artifact() } - content { includeModule("org.nodejs", "node") } - } - } - filter { includeGroup("org.nodejs") } - } - - exclusiveContent { - forRepository { - ivy("https://github.com/yarnpkg/yarn/releases/download") { - name = "Yarn Distributions at $url" - patternLayout { artifact("v[revision]/[artifact](-v[revision]).[ext]") } - metadataSources { artifact() } - content { includeModule("com.yarnpkg", "yarn") } - } - } - filter { includeGroup("com.yarnpkg") } - } -} - -fun RepositoryHandler.ivyNative() { - ivy { url = uri("https://download.jetbrains.com") } - - // TODO: Maybe this is not needed anymore - exclusiveContent { - forRepository { - this@ivyNative.ivy("https://download.jetbrains.com/kotlin/native/builds") { - name = "Kotlin Native" - patternLayout { - listOf( - "macos-x86_64", - "macos-aarch64", - "osx-x86_64", - "osx-aarch64", - "linux-x86_64", - "windows-x86_64", - ).forEach { os -> - listOf("dev", "releases").forEach { stage -> - artifact("$stage/[revision]/$os/[artifact]-[revision].[ext]") - } - } - } - metadataSources { artifact() } - } - } - filter { includeModuleByRegex(".*", ".*kotlin-native-prebuilt.*") } - } -} - rootProject.name = "ApiResult" include(":core", ":app")