-
Notifications
You must be signed in to change notification settings - Fork 153
/
settings.gradle.kts
32 lines (29 loc) · 1.11 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
rootProject.name = "sonarlint-intellij"
include("its", "clion", "clion-resharper", "clion-common", "common", "git", "rider")
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
val junit5 = version("junit5", "5.9.2")
library("junit-api", "org.junit.jupiter", "junit-jupiter-api").versionRef(junit5)
library("junit-engine", "org.junit.jupiter", "junit-jupiter-engine").versionRef(junit5)
library("assertj-core", "org.assertj:assertj-core:3.23.1")
library("mockito-core", "org.mockito:mockito-core:3.10.0")
}
}
}
val isCiServer = System.getenv().containsKey("CIRRUS_CI")
val isMasterBranch = System.getenv()["CIRRUS_BRANCH"] == "master"
val buildCacheHost: String = System.getenv().getOrDefault("CIRRUS_HTTP_CACHE_HOST", "localhost:12321")
buildCache {
local {
isEnabled = !isCiServer
}
remote<HttpBuildCache> {
url = uri("http://${buildCacheHost}/")
isEnabled = isCiServer
isPush = isMasterBranch
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version ("0.8.0")
}