Skip to content

Commit a6e73c7

Browse files
committed
Remove gradle enterprise / develocity
1 parent 114dacb commit a6e73c7

File tree

2 files changed

+2
-33
lines changed

2 files changed

+2
-33
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ jobs:
4040
uses: gradle/actions/setup-gradle@v4
4141
with:
4242
cache-read-only: ${{ github.event_name == 'pull_request' }}
43+
4344
- name: Build
44-
run: ./gradlew clean check shadowJar
45-
env:
46-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
45+
run: ./gradlew clean check shadowJar --scan
4746

4847
- run: java -cp sdk-usage/build/libs/opentelemetry-examples-sdk-usage-0.1.0-SNAPSHOT-all.jar io.opentelemetry.sdk.example.ConfigureSpanProcessorExample
4948

settings.gradle.kts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,15 @@ pluginManagement {
33
id("com.diffplug.spotless") version "6.25.0"
44
id("com.github.johnrengelman.shadow") version "8.1.1"
55
id("com.google.protobuf") version "0.9.4"
6-
id("com.gradle.develocity") version "3.18.2"
76
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
87
id("com.google.cloud.tools.jib") version "3.4.4"
98
}
109
}
1110

1211
plugins {
13-
id("com.gradle.develocity")
1412
id("org.gradle.toolchains.foojay-resolver-convention")
1513
}
1614

17-
val gradleEnterpriseServer = "https://ge.opentelemetry.io"
18-
val isCI = System.getenv("CI") != null
19-
val geAccessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY") ?: ""
20-
21-
// if the GE access key is not given, and we are in CI, then we publish to scans.gradle.com
22-
val useScansGradleCom = isCI && geAccessKey.isEmpty()
23-
24-
develocity {
25-
if (!useScansGradleCom) {
26-
server = gradleEnterpriseServer
27-
}
28-
buildScan {
29-
uploadInBackground = !isCI
30-
31-
if (useScansGradleCom) {
32-
termsOfUseUrl = "https://gradle.com/terms-of-service"
33-
termsOfUseAgree = "yes"
34-
publishing.onlyIf {true }
35-
} else {
36-
publishing.onlyIf { geAccessKey.isNotEmpty() }
37-
}
38-
39-
capture {
40-
fileFingerprints.set(true)
41-
}
42-
}
43-
}
44-
4515
rootProject.name = "opentelemetry-java-examples"
4616
include(
4717
":opentelemetry-examples-autoconfigure",

0 commit comments

Comments
 (0)