-
Notifications
You must be signed in to change notification settings - Fork 77
/
settings.gradle.kts
42 lines (33 loc) · 1.25 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
pluginManagement {
repositories {
maven("https://artifacts.itemis.cloud/repository/maven-mps/")
gradlePluginPortal()
}
}
val subprojectPaths = listOf("com.mbeddr",
"com.mbeddr:platform",
"com.mbeddr:languages",
"com.mbeddr:distribution",
"publishing")
fun fqpath(path: String) = ":$path"
fun dir(path: String) = file("subprojects/" + path.replace(':', '/'))
include(*subprojectPaths.map(::fqpath).toTypedArray())
for (path in subprojectPaths) {
project(fqpath(path)).projectDir = dir(path)
}
include(":BigProject")
project(":BigProject").projectDir = file("tools/BigProject")
rootProject.name = "mbeddr.core"
dependencyResolutionManagement {
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
repositories {
maven("https://artifacts.itemis.cloud/repository/maven-mps")
mavenCentral()
val disableMavenLocal = ext.has("disableMavenLocal") && "true".equals(ext.get("disableMavenLocal"))
if (!disableMavenLocal) {
// we don't use mavenLocal() repo, since it can cause various issues with resolving dependencies,
// see https://docs.gradle.org/current/userguide/declaring_repositories.html#sec:case-for-maven-local
mavenLocal()
}
}
}