-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
37 lines (30 loc) · 867 Bytes
/
settings.gradle.kts
File metadata and controls
37 lines (30 loc) · 867 Bytes
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
/* Project Settings */
val modulesConfiguratorPath = "$rootDir/gradle/modules-configurator.gradle.kts"
// Attach modules
apply(from = File(modulesConfiguratorPath))
dependencyResolutionManagement {
@Suppress("UnstableApiUsage")
repositories {
google()
mavenCentral()
}
}
pluginManagement {
repositories {
google()
mavenCentral()
}
resolutionStrategy {
eachPlugin {
val kotlinVersion = "1.6.10"
val androidGradleVersion = "7.1.2"
val pluginId = requested.id.id
when {
pluginId.startsWith("org.jetbrains.kotlin") -> useVersion(kotlinVersion)
pluginId.startsWith("com.android.") -> {
useModule("com.android.tools.build:gradle:$androidGradleVersion")
}
}
}
}
}