Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ variables:
DEPENDENCY_CACHE_POLICY: pull
BUILD_CACHE_POLICY: pull
GRADLE_VERSION: "8.4" # must match gradle-wrapper.properties
MAVEN_REPOSITORY_PROXY: "https://artifactual.us1.prod.dog/repository/maven-central/"
JAVA_BUILD_IMAGE_VERSION: "v25.01"
REPO_NOTIFICATION_CHANNEL: "#apm-java-escalations"
PROFILE_TESTS:
Expand Down Expand Up @@ -74,7 +75,7 @@ default:
policy: $BUILD_CACHE_POLICY
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- export GRADLE_ARGS=" --build-cache --stacktrace --no-daemon --parallel --max-workers=$GRADLE_WORKERS"
- export GRADLE_ARGS=" --build-cache --stacktrace --no-daemon --parallel --max-workers=$GRADLE_WORKERS -PmavenRepositoryProxy=$MAVEN_REPOSITORY_PROXY"
- *normalize_node_index
# for weird reasons, gradle will always "chmod 700" the .gradle folder
# with Gitlab caching, .gradle is always owned by root and thus gradle's chmod invocation fails
Expand Down Expand Up @@ -199,10 +200,8 @@ muzzle:
needs: [ build ]
stage: tests
parallel: 8
rules:
- when: never
variables:
BUILD_CACHE_TYPE: test
BUILD_CACHE_TYPE: lib
script:
- export SKIP_BUILDSCAN="true"
- ./gradlew writeMuzzleTasksToFile $GRADLE_ARGS
Expand Down
5 changes: 5 additions & 0 deletions gradle/repositories.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
repositories {
if (project.rootProject.hasProperty("mavenRepositoryProxy")) {
maven {
url project.rootProject.property("mavenRepositoryProxy")
}
}
mavenLocal()
mavenCentral()
// add sonatype repository for snapshot dependencies
Expand Down