From e12f7fd05c3a875868c0fab9bc7f18d28f798393 Mon Sep 17 00:00:00 2001
From: lewa <lene.wasskog@nibio.no>
Date: Sat, 2 Sep 2023 13:32:49 +0200
Subject: [PATCH] build: Build jar with new version of VIPSCommon

---
 .gitlab-ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5065e01..49a2c7e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -33,11 +33,14 @@ test:
   rules:
     - if: '$CI_PIPELINE_SOURCE != "trigger"'
 
+# This job is triggered by the VIPSCommon pipeline, and builds the model with the given version of VIPSCommon
 test_after_vips_common_changes:
   stage: test
   script:
     - echo $VERSION
-    - ./mvnw $MAVEN_CLI_OPTS $MAVEN_OPTS test
+    - ./mvnw versions:use-dep-version -Dincludes=no.nibio.vips:VIPSCommon -DdepVersion=$VERSION -DforceVersion=true
+    - echo 'Build model with no.nibio.vips:VIPSCommon:$VERSION'
+    - ./mvnw $MAVEN_CLI_OPTS $MAVEN_OPTS package
   tags:
     - vips-java
   rules:
-- 
GitLab