Commit 4c784c6c authored by Vito Conforti's avatar Vito Conforti
Browse files

Update .gitlab-ci.yml file

parent 03c31974
Loading
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -2,13 +2,14 @@ image: openjdk:19 # Use the appropriate Java 19 image

stages:
  - build
  - run

variables:
  MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"  # Custom Maven repository location

before_script:
  - apt-get update -qy
  - apt-get install -y maven
#before_script:
#  - apt-get update -qy
#  - apt-get install -y maven

build:
  stage: build
@@ -18,7 +19,7 @@ build:
    paths:
      - target/*.jar  # Save JAR artifacts

.post:
run:
  stage: run
  script:
    - java -jar target/*.jar  # Replace with the actual JAR file name