Skip to content

Commit

Permalink
remove ivy repo hack
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek-12 committed May 30, 2024
1 parent a2bc368 commit c99f0db
Showing 1 changed file with 1 addition and 58 deletions.
59 changes: 1 addition & 58 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit c99f0db

Please sign in to comment.