Skip to content

Commit 2b6625e

Browse files
authored
Update develocity configuration (#1567)
1 parent f798481 commit 2b6625e

File tree

5 files changed

+7
-55
lines changed

5 files changed

+7
-55
lines changed

.github/renovate.json5

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
"matchPackagePrefixes": ["io.micrometer:"],
2525
"groupName": "micrometer packages"
2626
},
27-
{
28-
"matchPackagePrefixes": ["com.gradle.enterprise"],
29-
"groupName": "gradle enterprise packages"
30-
},
3127
{
3228
// prevent 3.0.1u2 -> 3.0.1
3329
"matchPackageNames": ["com.google.code.findbugs:annotations"],

.github/workflows/build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
cache-read-only: ${{ github.event_name == 'pull_request' }}
3131
- name: Gradle build and test
3232
run: ./gradlew build -x test
33-
env:
34-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
3533

3634
test:
3735
name: test (${{ matrix.test-java-version }})
@@ -71,8 +69,6 @@ jobs:
7169
-PtestJavaVersion=${{ matrix.test-java-version }}
7270
-Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }}
7371
-Porg.gradle.java.installations.auto-download=false
74-
env:
75-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
7672
7773
integration-test:
7874
runs-on: ubuntu-latest
@@ -89,10 +85,9 @@ jobs:
8985
uses: gradle/actions/setup-gradle@v4
9086
with:
9187
cache-read-only: ${{ github.event_name == 'pull_request' }}
88+
9289
- name: Integration test
9390
run: ./gradlew integrationTest
94-
env:
95-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
9691

9792
- name: Save integration test results
9893
uses: actions/upload-artifact@v4

buildSrc/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ dependencies {
1515
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.25.0")
1616
implementation("net.ltgt.gradle:gradle-errorprone-plugin:4.1.0")
1717
implementation("net.ltgt.gradle:gradle-nullaway-plugin:2.1.0")
18-
implementation("com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.18.2")
1918
}
2019

2120
spotless {

buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,6 @@ tasks {
7171
showCauses = true
7272
showStackTraces = true
7373
}
74-
75-
develocity.testRetry {
76-
// You can see tests that were retried by this mechanism in the collected test reports and build scans.
77-
if (System.getenv().containsKey("CI") || rootProject.hasProperty("retryTests")) {
78-
maxRetries.set(5)
79-
}
80-
}
8174
}
8275

8376
withType<Javadoc>().configureEach {

settings.gradle.kts

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
pluginManagement {
22
plugins {
33
id("com.github.johnrengelman.shadow") version "8.1.1"
4-
id("com.gradle.develocity") version "3.18.2"
54
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
5+
id("com.gradle.develocity") version "3.18.2"
66
}
77
}
88

@@ -17,42 +17,11 @@ dependencyResolutionManagement {
1717
}
1818
}
1919

20-
val gradleEnterpriseServer = "https://ge.opentelemetry.io"
21-
val isCI = System.getenv("CI") != null
22-
val develocityAccessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY") ?: ""
23-
24-
// if GE access key is not given and we are in CI, then we publish to scans.gradle.com
25-
val useScansGradleCom = isCI && develocityAccessKey.isEmpty()
26-
27-
if (useScansGradleCom) {
28-
develocity {
29-
buildScan {
30-
termsOfUseUrl.set("https://gradle.com/terms-of-service")
31-
termsOfUseAgree.set("yes")
32-
uploadInBackground.set(!isCI)
33-
publishing.onlyIf { true }
34-
35-
capture {
36-
fileFingerprints.set(true)
37-
}
38-
}
39-
}
40-
} else {
41-
develocity {
42-
server = gradleEnterpriseServer
43-
buildScan {
44-
uploadInBackground.set(!isCI)
45-
46-
publishing.onlyIf {
47-
it.isAuthenticated
48-
}
49-
capture {
50-
fileFingerprints.set(true)
51-
}
52-
53-
gradle.startParameter.projectProperties["testJavaVersion"]?.let { tag(it) }
54-
gradle.startParameter.projectProperties["testJavaVM"]?.let { tag(it) }
55-
}
20+
develocity {
21+
buildScan {
22+
publishing.onlyIf { System.getenv("CI") != null }
23+
termsOfUseUrl.set("https://gradle.com/help/legal-terms-of-use")
24+
termsOfUseAgree.set("yes")
5625
}
5726
}
5827

0 commit comments

Comments
 (0)