diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6d3ee52e70e84a3a2cd506b91ad3e72d8b355f0e..4531723af147a188a1fe2f382f7afc4d2de3b725 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,11 +6,9 @@ stages:
   - test
 
 build:
-  image: openjdk:8
+  image: openjdk:11
   stage: build
   script:
-    # see discussion in the answer of https://stackoverflow.com/questions/44911155/gradle-how-to-include-runtimeonly-dependencies-in-javaexec-classpath
-    - ./gradlew --console=plain --no-daemon relast.preprocessor:jar
     - ./gradlew --console=plain --no-daemon assemble jar
   artifacts:
     paths:
@@ -18,7 +16,7 @@ build:
 
 
 test:
-  image: openjdk:8
+  image: openjdk:11
   stage: test
   script:
     - ./gradlew --console=plain --no-daemon check