-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.gradle.kts
104 lines (96 loc) · 3.37 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
pluginManagement {
val dokkaVersion: String by settings
val kotlinVersion: String by settings
val koverVersion: String by settings
repositories {
gradlePluginPortal()
mavenCentral()
google()
maven("https://jitpack.io/")
mavenLocal()
}
plugins {
kotlin("multiplatform") version kotlinVersion apply false
id("org.jetbrains.dokka") version dokkaVersion apply false
id("org.jetbrains.kotlinx.kover") version koverVersion apply false
}
}
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
mavenCentral()
google()
maven("https://jitpack.io/")
// workaround for https://youtrack.jetbrains.com/issue/KT-51379
exclusiveContent {
forRepository {
ivy("https://download.jetbrains.com/kotlin/native/builds") {
name = "Kotlin Native"
patternLayout {
listOf(
"macos-x86_64",
"macos-aarch64",
"osx-x86_64",
"osx-aarch64",
"ios-aarch64",
"ios-x86_64",
"tvos-aarch64",
"tvos-x86_64",
"watchos-aarch64",
"watchos-x86_64",
"linux-x86_64",
"linux-aarch64",
"windows-x86_64",
).forEach { os ->
listOf("dev", "releases").forEach { stage ->
artifact("$stage/[revision]/$os/[artifact]-[revision].[ext]")
}
}
}
metadataSources { artifact() }
}
}
filter { includeModuleByRegex(".*", ".*kotlin-native-prebuilt.*") }
}
exclusiveContent {
forRepository {
ivy {
name = "Node.js"
setUrl("https://nodejs.org/dist/")
patternLayout {
artifact("v[revision]/[artifact](-v[revision]-[classifier]).[ext]")
}
metadataSources {
artifact()
}
content {
includeModule("org.nodejs", "node")
}
}
}
filter { includeModuleByRegex("org.nodejs", "node") }
}
exclusiveContent {
forRepository {
ivy {
name = "Yarn"
setUrl("https://github.com/yarnpkg/yarn/releases/download/")
patternLayout {
artifact("v[revision]/[artifact](-v[revision]).[ext]")
}
metadataSources {
artifact()
}
content {
includeModule("com.yarnpkg", "yarn")
}
}
}
filter { includeModuleByRegex("com.yarnpkg", "yarn") }
}
mavenLocal()
}
}
rootProject.name = "kop"
include(":kop")