diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e73262d627d3d1c3a134f0b43f94b7662960cb3a..7cd23431cdef5536753ebae29618bee92c02fdb2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -129,14 +129,7 @@ spotbugs-benchmarks:
     - changes:
       - theodolite-benchmarks/*
       - theodolite-benchmarks/$JAVA_PROJECT_NAME/**/*
-      - theodolite-benchmarks/kstreams-commons/**/*
-      - theodolite-benchmarks/flink-commons/**/*
-      - theodolite-benchmarks/beam-commons/**/*
-      - theodolite-benchmarks/uc1-beam/**/*
-      - theodolite-benchmarks/uc2-beam/**/*
-      - theodolite-benchmarks/uc3-beam/**/*
-      - theodolite-benchmarks/uc4-beam/**/*
-      - theodolite-benchmarks/load-generator-commons/**/*
+      - theodolite-benchmarks/{$JAVA_PROJECT_DEPS}/**/*
       if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW && $IMAGE_NAME && $JAVA_PROJECT_NAME && $JAVA_PROJECT_DEPS"
       when: always
     - if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW && $IMAGE_NAME && $JAVA_PROJECT_NAME"