Skip to content

Commit dfc56fb

Browse files
committed
build: update develocity build scan and cache settings
1 parent a95c344 commit dfc56fb

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

settings.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,24 @@ plugins {
33
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.3'
44
}
55

6-
def isCI = System.getenv('CI') == 'true'
6+
def isCI = System.getenv().containsKey('CI')
7+
def isLocal = !isCI
78

89
develocity {
910
server = 'https://ge.grails.org'
1011
buildScan {
11-
publishing.onlyIf { isCI }
12-
uploadInBackground = !isCI
12+
tag('grails-plugins')
13+
tag('grails-cache-redis')
14+
publishing.onlyIf { it.authenticated }
15+
uploadInBackground = isLocal
1316
}
1417
}
1518

1619
buildCache {
17-
local { enabled = !isCI }
20+
local { enabled = isLocal }
1821
remote(develocity.buildCache) {
1922
enabled = true
20-
push = isCI && System.getenv('DEVELOCITY_ACCESS_KEY')
23+
push = isCI
2124
}
2225
}
2326

0 commit comments

Comments
 (0)