forked from detekt/detekt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
89 lines (77 loc) · 2.23 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import com.gradle.enterprise.gradleplugin.internal.extension.BuildScanExtensionWithHiddenFeatures
rootProject.name = "detekt"
pluginManagement {
includeBuild("build-logic")
includeBuild("detekt-gradle-plugin")
}
include("code-coverage-report")
include("detekt-api")
include("detekt-cli")
include("detekt-core")
include("detekt-formatting")
include("detekt-generator")
include("detekt-metrics")
include("detekt-parser")
include("detekt-psi-utils")
include("detekt-report-html")
include("detekt-report-md")
include("detekt-report-sarif")
include("detekt-report-txt")
include("detekt-report-xml")
include("detekt-rules")
include("detekt-rules-complexity")
include("detekt-rules-coroutines")
include("detekt-rules-documentation")
include("detekt-rules-empty")
include("detekt-rules-errorprone")
include("detekt-rules-exceptions")
include("detekt-rules-naming")
include("detekt-rules-performance")
include("detekt-rules-ruleauthors")
include("detekt-rules-style")
include("detekt-sample-extensions")
include("detekt-test")
include("detekt-test-utils")
include("detekt-tooling")
include("detekt-utils")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
// build scan plugin can only be applied in settings file
plugins {
id("com.gradle.enterprise") version "3.11.1"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.8.1"
}
val isCiBuild = System.getenv("CI") != null
gradleEnterprise {
buildScan {
publishAlways()
// Publish to scans.gradle.com when `--scan` is used explicitly
if (!gradle.startParameter.isBuildScan) {
server = "https://ge.detekt.dev"
this as BuildScanExtensionWithHiddenFeatures
publishIfAuthenticated()
}
isUploadInBackground = !isCiBuild
capture {
isTaskInputFiles = true
}
}
}
buildCache {
local {
isEnabled = true
}
remote<HttpBuildCache> {
isPush = isCiBuild
isEnabled = true
url = uri("https://ge.detekt.dev/cache/")
credentials {
username = System.getenv("GRADLE_CACHE_USERNAME")
password = System.getenv("GRADLE_CACHE_PASSWORD")
}
}
}
dependencyResolutionManagement {
repositories {
mavenCentral()
}
}