-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle.kts
27 lines (25 loc) · 980 Bytes
/
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
rootProject.name = "drpc4k"
//include("drpc4k-pure")
enableFeaturePreview("STABLE_PUBLISHING")
val kotlin_version: String by settings
val undercouch_dl_version: String by settings
val bintray_version: String by settings
val artifactory_version: String by settings
pluginManagement {
resolutionStrategy {
eachPlugin {
logger.debug("Requested: " + requested.id.id)
when (requested.id.id) {
"de.undercouch.download" -> useVersion(undercouch_dl_version)
"com.jfrog.bintray" -> useVersion(bintray_version)
"com.jfrog.artifactory" -> useVersion(artifactory_version)
else -> when (requested.id.namespace) {
"org.jetbrains.kotlin" -> useVersion(kotlin_version)
}
}
if (requested.id.id == "kotlin2js") {
useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:${requested.version}")
}
}
}
}