From 558c98298fefcdaaaef069575fbe6e2e956a960c Mon Sep 17 00:00:00 2001 From: jzh0u Date: Tue, 26 May 2026 13:16:47 -0400 Subject: [PATCH 1/2] chore: route Gradle distribution through MASS pull-through cache Fix GRADLE_VERSION to match gradle-wrapper.properties (8.14.5). Co-Authored-By: Claude Sonnet 4.6 --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 44dc2e54c8a..efe1a9820d0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,7 +49,8 @@ variables: BUILD_JOB_NAME: "build" DEPENDENCY_CACHE_POLICY: pull BUILD_CACHE_POLICY: pull - GRADLE_VERSION: "8.14.4" # must match gradle-wrapper.properties + GRADLE_VERSION: "8.14.5" # must match gradle-wrapper.properties + MASS_READ_URL: "https://mass-read.us1.ddbuild.io" MAVEN_REPOSITORY_PROXY: "https://depot-read-api-java.us1.ddbuild.io/magicmirror/magicmirror/@current/" GRADLE_PLUGIN_PROXY: "https://depot-read-api-java.us1.ddbuild.io/magicmirror/magicmirror/@current/" BUILDER_IMAGE_REPO: "registry.ddbuild.io/images/mirror/dd-trace-java-docker-build" # images are pinned in images/mirror.lock.yaml in the DataDog/images repo @@ -228,6 +229,8 @@ default: - export GRADLE_USER_HOME=$(pwd)/.gradle # replace maven central part by MAVEN_REPOSITORY_PROXY in .mvn/wrapper/maven-wrapper.properties - sed -i "s|https://repo.maven.apache.org/maven2/|$MAVEN_REPOSITORY_PROXY|g" .mvn/wrapper/maven-wrapper.properties + # Route Gradle distribution download through MASS pull-through cache + - sed -i "s|distributionUrl=https\\\\://services.gradle.org/|distributionUrl=https\\\\://${MASS_READ_URL#https://}/internal/artifact/services.gradle.org/|" gradle/wrapper/gradle-wrapper.properties - mkdir -p .mvn/caches # Redirect Spotless's Equo/Solstice P2 cache into the project tree so it is captured by the GitLab cache. # Solstice (https://github.com/equodev/equo-ide) defaults to ~/.m2/repository/dev/equo/p2-data, which is outside $CI_PROJECT_DIR. From 43a8668276841a2f86fdbc00b4b0a548157f4c0c Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Wed, 27 May 2026 11:38:54 -0400 Subject: [PATCH 2/2] Improve readability --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index efe1a9820d0..8f19a760870 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -230,7 +230,10 @@ default: # replace maven central part by MAVEN_REPOSITORY_PROXY in .mvn/wrapper/maven-wrapper.properties - sed -i "s|https://repo.maven.apache.org/maven2/|$MAVEN_REPOSITORY_PROXY|g" .mvn/wrapper/maven-wrapper.properties # Route Gradle distribution download through MASS pull-through cache - - sed -i "s|distributionUrl=https\\\\://services.gradle.org/|distributionUrl=https\\\\://${MASS_READ_URL#https://}/internal/artifact/services.gradle.org/|" gradle/wrapper/gradle-wrapper.properties + - | + mass_read_host="${MASS_READ_URL#https://}" + mass_read_host="${mass_read_host%/}" + sed -i "/^distributionUrl=/ s|services.gradle.org|${mass_read_host}/internal/artifact/services.gradle.org|" gradle/wrapper/gradle-wrapper.properties - mkdir -p .mvn/caches # Redirect Spotless's Equo/Solstice P2 cache into the project tree so it is captured by the GitLab cache. # Solstice (https://github.com/equodev/equo-ide) defaults to ~/.m2/repository/dev/equo/p2-data, which is outside $CI_PROJECT_DIR.