-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
52 lines (39 loc) · 1.12 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
50
51
52
rootProject.name = "Formulaide"
pluginManagement {
repositories {
gradlePluginPortal()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
plugins {
id("de.fayard.refreshVersions") version "0.51.0"
}
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
include(
"backend",
"core:core-data",
"core:core-users",
"core:core-domain",
"remote-common",
"remote-client",
"remote-server",
"mongo",
"fake",
"test",
"test-structure",
)
buildCache {
val username = System.getenv("GRADLE_BUILD_CACHE_CREDENTIALS")?.split(':')?.get(0)
val password = System.getenv("GRADLE_BUILD_CACHE_CREDENTIALS")?.split(':')?.get(1)
val mainBranch: String? = System.getenv("CI_DEFAULT_BRANCH")
val currentBranch: String? = System.getenv("CI_COMMIT_REF_NAME")
val runningForTag = System.getenv().containsKey("CI_COMMIT_TAG")
remote<HttpBuildCache> {
url = uri("https://gradle.opensavvy.dev/cache/")
if (username != null && password != null) credentials {
this.username = username
this.password = password
}
isPush = (mainBranch != null && currentBranch != null && mainBranch == currentBranch) || runningForTag
}
}