-
Notifications
You must be signed in to change notification settings - Fork 5
/
settings.gradle.kts
45 lines (37 loc) · 996 Bytes
/
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
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
}
}
rootProject.name = "rewrite-python"
plugins {
id("com.gradle.develocity") version "latest.release"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.12.1"
}
include("rewrite-python")
include("rewrite-python-remote")
include("rewrite-test-engine-remote")
develocity {
server = "https://ge.openrewrite.org/"
val isCiServer = System.getenv("CI")?.equals("true") ?: false
val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY")
val authenticated = !accessKey.isNullOrBlank()
buildCache {
remote(develocity.buildCache) {
isEnabled = true
isPush = isCiServer && authenticated
}
}
buildScan {
capture {
fileFingerprints = true
}
publishing {
onlyIf {
authenticated
}
}
uploadInBackground = !isCiServer
}
}