-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsettings.gradle.kts
39 lines (35 loc) · 1.17 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
rootProject.name = "polyfill-parent"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
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")
id("com.github.gmazzo.buildconfig") version getVersion("buildConfigVer") 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(":polyfill")
include(":polyfill-backport")
include(":android-arsc-parser") // resource.arsc parser
include(":android-manifest-parser") // AndroidManifest.xml parser
include(":polyfill-test-plugin") // A test plugin for testing polyfill function
include(":functional-test")