-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
41 lines (36 loc) · 1.07 KB
/
settings.gradle.kts
File metadata and controls
41 lines (36 loc) · 1.07 KB
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
rootProject.name = "scratch-paper-root"
pluginManagement {
val versions = file("deps.versions.toml").readText()
val regexPlaceHolder = "%s\\s\\=\\s\\\"([A-Za-z0-9\\.\\-]+)\\\""
val getVersion = { s: String -> regexPlaceHolder.format(s).toRegex().find(versions)!!.groupValues[1] }
plugins {
kotlin("jvm") version getVersion("kotlinVer") apply false
kotlin("plugin.serialization") version getVersion("kotlinVer") apply false
}
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
mavenLocal()
}
versionCatalogs {
create("deps") {
from(files("deps.versions.toml"))
}
}
}
include(":scratchpaper", ":functional-test")
//if (file("../../Polyfill").run { exists() && isDirectory }) {
// includeBuild("../../Polyfill") {
// dependencySubstitution {
// substitute(module("me.2bab:polyfill"))
// .with(project(":polyfill"))
// }
// }
//}