-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle
38 lines (36 loc) · 1.68 KB
/
settings.gradle
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
pluginManagement {
repositories {
mavenCentral()
google()
maven { url "https://plugins.gradle.org/m2/" }
}
resolutionStrategy {
eachPlugin {
switch (requested.id.id) {
case "com.android.library":
case "com.android.application":
def ver = requested.version != null ? requested.version : androidBuildToolsVersion
useModule("com.android.tools.build:gradle:${ver}");
break
case "kotlin-android":
case "org.jetbrains.kotlin.android":
case "kotlin-android-extensions":
def ver = requested.version != null ? requested.version : kotlin_version
useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:${ver}");
break
case "org.jetbrains.kotlin.multiplatform":
def ver = requested.version != null ? requested.version : kotlin_version
useModule("org.jetbrains.kotlin:org.jetbrains.kotlin.multiplatform:${ver}");
break
case "org.jetbrains.dokka-android":
def ver = requested.version != null ? requested.version : dokkaVersion
useModule("org.jetbrains.dokka:dokka-android-gradle-plugin:${ver}")
break
case "kotlinx-serialization":
def version = (requested.version == null || requested.version.length() == 0) ? kotlin_version : requested.version
useModule("org.jetbrains.kotlin:kotlin-serialization:$version")
}
}
}
}
rootProject.name="darwinlib"