Skip to content

Commit

Permalink
Migrate from Gradle Enterprise Gradle Plugin to Develocity Gradle Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
clayburn authored and thiagohp committed Oct 27, 2024
1 parent 7ffdf2e commit da89b55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on: pull_request

env:
MOZ_HEADLESS: true
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}

jobs:
build:
Expand All @@ -27,7 +28,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v4

- name: Build with Gradle
run: ./gradlew -Dci=true --no-daemon --continue build
13 changes: 6 additions & 7 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
plugins {
id 'com.gradle.enterprise' version '3.13.2'
id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.10'
id 'com.gradle.develocity' version '3.17.6'
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
}

def isTravisCI = System.getenv('TRAVIS_JOB_ID') != null
def isJenkins = System.getenv('JENKINS_URL') != null
def isCI = isTravisCI || isJenkins

gradleEnterprise {
develocity {
server = "https://ge.apache.org"
projectId = "tapestry"
buildScan {
capture { taskInputFiles = true }
uploadInBackground = !isCI
publishAlways()
publishIfAuthenticated()
publishing.onlyIf { it.authenticated }
obfuscation {
// This obfuscates the IP addresses of the build machine in the build scan.
// Alternatively, the build scan will provide the hostname for troubleshooting host-specific issues.
Expand All @@ -27,7 +26,7 @@ buildCache {
enabled = !isCI
}

remote(gradleEnterprise.buildCache) {
remote(develocity.buildCache) {
enabled = false
}
}
Expand Down

0 comments on commit da89b55

Please sign in to comment.