-
Notifications
You must be signed in to change notification settings - Fork 60
/
settings.gradle.kts
44 lines (37 loc) · 1.15 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
@file:Suppress("UnstableApiUsage")
enableFeaturePreview("ONE_LOCKFILE_PER_PROJECT")
pluginManagement {
val shadowVersion: String by settings
val stutterVersion: String by settings
resolutionStrategy {
eachPlugin {
when (requested.id.id) {
"com.github.johnrengelman.shadow" -> useVersion(shadowVersion)
"org.ajoberstar.stutter" -> useVersion(stutterVersion)
}
when (requested.id.namespace) {
"org.jetbrains.kotlin",
"org.jetbrains.kotlin.plugin" -> useVersion(embeddedKotlinVersion)
}
}
}
}
plugins {
kotlin("jvm") apply false
kotlin("kapt") apply false
id("com.github.johnrengelman.shadow") apply false
id("org.ajoberstar.stutter") apply false
}
dependencyResolutionManagement {
repositories {
jcenter()
maven { url = uri("https://repo.gradle.org/gradle/libs-releases") }
}
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
}
buildscript {
configurations.classpath {
resolutionStrategy.activateDependencyLocking()
}
}
include(":app", ":ivy", ":model", ":plugin")