From 22487783b080c957296bed02856796e610f6be64 Mon Sep 17 00:00:00 2001 From: Antonio Garcia-Dominguez Date: Mon, 2 Dec 2024 18:04:26 +0000 Subject: [PATCH] Use a Maven POM to fetch backend JAR --- .github/workflows/docker-image.yml | 4 ++-- download-backend.sh | 5 ----- pom.xml | 25 +++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 7 deletions(-) delete mode 100755 download-backend.sh create mode 100644 pom.xml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 3e24ce2..119725f 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -18,6 +18,6 @@ jobs: distribution: 'temurin' cache: maven - name: Download the backend JAR - run: ./download-backend.sh + run: mvn -B dependency:copy-dependency -DexcludeTransitive=true - name: Build the Docker image - run: docker build . --file Dockerfile --tag playground-docker:$(date +%s) + run: docker build --tag playground-docker:$(date +%s) . diff --git a/download-backend.sh b/download-backend.sh deleted file mode 100755 index e3f0a00..0000000 --- a/download-backend.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -mvn -B dependency:get -DremoteRepositories=https://maven.pkg.github.com/epsilonlabs/playground-micronaut -Dclassifier=all \ - -DgroupId=org.eclipse.epsilon.labs.playground.micronaut -DartifactId=http-server -Dversion=${BACKEND_VERSION} \ - -Dtransitive=false diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..d556922 --- /dev/null +++ b/pom.xml @@ -0,0 +1,25 @@ + + 4.0.0 + + org.eclipse.epsilon.labs.playground + playground-docker + 1.0-SNAPSHOT + pom + + + UTF-8 + 17 + + + + + org.eclipse.epsilon.labs.playground.micronaut + http-server + 0.1-SNAPSHOT + all + + + + \ No newline at end of file