diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 813d82b979..ef0b45679f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: matrix: java-version: [ 8.0.232 ] env: - GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} steps: - name: Cache Gradle packages uses: actions/cache@v2 @@ -46,7 +46,7 @@ jobs: distribution: 'zulu' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 + uses: gradle/actions/wrapper-validation@v4 - name: Build with Gradle run: ./gradlew build diff --git a/settings.gradle b/settings.gradle index cce9f80900..bef9d3b97f 100644 --- a/settings.gradle +++ b/settings.gradle @@ -17,21 +17,20 @@ * under the License. */ plugins { - id 'com.gradle.enterprise' version '3.13.1' - id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.10' + id 'com.gradle.develocity' version '4.2.2' + id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.4.0' } def isGithubActions = System.getenv('GITHUB_ACTIONS') != null def isJenkins = System.getenv('JENKINS_URL') != null def isCI = isGithubActions || isJenkins -gradleEnterprise { - server = "https://ge.apache.org" +develocity { + server = "https://develocity.apache.org" + projectId = "samza" buildScan { - capture { taskInputFiles = true } uploadInBackground = !isCI - publishAlways() - publishIfAuthenticated() + publishing.onlyIf { it.isAuthenticated() } 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. @@ -45,7 +44,7 @@ buildCache { enabled = !isCI } - remote(gradleEnterprise.buildCache) { + remote(develocity.buildCache) { enabled = false } }