-
Notifications
You must be signed in to change notification settings - Fork 15
/
settings.gradle.kts
49 lines (44 loc) · 1.46 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
43
44
45
46
47
48
49
pluginManagement {
includeBuild("convention-plugins")
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("de.fayard.refreshVersions") version "0.60.5"
id("org.splitties.settings-include-dsl") version "0.2.6"
id("org.splitties.dependencies-dsl") version "0.2.0"
id("org.splitties.version-sync") version "0.2.6"
}
run { // Remove when https://github.com/gradle/gradle/issues/2534 is fixed.
val rootProjectPropertiesFile = rootDir.resolve("gradle.properties")
val includedBuildPropertiesFile = rootDir.resolve("convention-plugins").resolve("gradle.properties")
if (includedBuildPropertiesFile.exists().not() ||
rootProjectPropertiesFile.readText() != includedBuildPropertiesFile.readText()
) {
rootProjectPropertiesFile.copyTo(target = includedBuildPropertiesFile, overwrite = true)
}
}
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots")
}
}
rootProject.name = "ComposeOClock sample"
include {
"app-phone"()
"app-watch"()
"shared"()
}