-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
34 lines (32 loc) · 1.03 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
include("worker")
file("worker").listFiles()!!.asSequence()
.filter(File::isDirectory)
.filter { it.name != ".gradle" && it.name != "libs" && it.name != "build" }
.forEach { include("worker:${it.name}") }
include("schema")
include("minecraft")
include("spatial_stl")
val kotlin_version: String by settings
pluginManagement {
repositories {
jcenter()
maven(url = "https://maven.fabricmc.net/") {
name = "Fabric"
}
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
logger.debug("Requested: " + requested.id.id)
when (requested.id.id) {
"de.undercouch.download" -> useVersion("4.0.0")
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}")
}
}
}
}