Skip to content

Commit 427e800

Browse files
authored
Update gradle enterprise settings (#4951)
Motivation: Update gradle enterprise settings as suggested Modifications: - Add the commons plugin which adds additional metadata/tags - Publish always if authenticated - Enable uploadInBackground for local builds Result: - Better integration - I've also verified locally that we don't get the `The Gradle Enterprise server (ge.armeria.dev) rejected the request due to authentication being required.` message
1 parent 75f45e5 commit 427e800

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

settings.gradle

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ plugins {
77
// https://docs.gradle.org/8.1.1/userguide/toolchains.html#sec:provisioning
88
id("org.gradle.toolchains.foojay-resolver") version "0.5.0"
99
id "com.gradle.enterprise" version "3.13.3"
10+
// adds additional metadata to build scans
11+
id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.11'
1012

1113
}
1214
toolchainManagement {
@@ -21,9 +23,9 @@ toolchainManagement {
2123
gradleEnterprise {
2224
server = "https://ge.armeria.dev"
2325
buildScan {
24-
// publish build scans if the access key is provided
25-
publishAlwaysIf(System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY") != null)
26-
uploadInBackground = false
26+
publishIfAuthenticated()
27+
publishAlways()
28+
uploadInBackground = System.getenv("CI") == null
2729
capture {
2830
taskInputFiles = true
2931
}

0 commit comments

Comments
 (0)