From 4a4af3807a3742fb8afd0bdb37f386674c731aee Mon Sep 17 00:00:00 2001 From: Lars Simon Winzer Date: Mon, 30 Mar 2026 14:46:53 +0200 Subject: [PATCH 1/2] Ci: Enable configuration-cache via flag and warn on problems --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c78f55..eae942c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,7 @@ checkstyle: stage: lint image: gradle:9.3.1-jdk25 script: - - gradle checkstyleMain checkstyleTest + - gradle checkstyleMain checkstyleTest --configuration-cache --configuration-cache-problems=warn allow_failure: true artifacts: when: always @@ -47,7 +47,7 @@ checkstyle-mr: stage: lint image: gradle:9.3.1-jdk25 script: - - gradle checkstyleMain checkstyleTest + - gradle checkstyleMain checkstyleTest --configuration-cache --configuration-cache-problems=warn allow_failure: false artifacts: when: always @@ -82,7 +82,7 @@ compile-check: stage: build image: gradle:9.3.1-jdk25 script: - - gradle compileTestJava + - gradle compileTestJava --configuration-cache --configuration-cache-problems=warn needs: [] rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' @@ -95,7 +95,7 @@ test: stage: test image: gradle:9.3.1-jdk25 script: - - gradle test + - gradle test --configuration-cache --configuration-cache-problems=warn artifacts: when: always reports: From d027696580b17efe5742c636853283f5bf948a56 Mon Sep 17 00:00:00 2001 From: Lars Simon Winzer Date: Mon, 30 Mar 2026 14:50:42 +0200 Subject: [PATCH 2/2] Ci: Modify gradle-cache definition to fix path issue --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eae942c..ef2d1f5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,11 +6,13 @@ stages: # Reusable definitions .gradle-cache: &gradle-cache + variables: + GRADLE_USER_HOME: '$CI_PROJECT_DIR/.gradle-home' cache: key: '$CI_PROJECT_ID-gradle' paths: - .gradle/ - - ~/.gradle/caches/ + - .gradle-home/ .on-commit: &on-commit rules: