From 6f8bd68a8bd9c7ed82d609e123b548ab64333fde Mon Sep 17 00:00:00 2001 From: Stepan Burlakov Date: Tue, 22 Oct 2024 14:37:08 +0300 Subject: [PATCH] run prep before deps --- .github/workflows/release.yml | 2 +- project.clj | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ce8010..1573554 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: lein: '2.9.10' - name: "Install dependencies" - run: lein deps + run: lein prep && lein deps - name: Import GPG key uses: crazy-max/ghaction-import-gpg@v6 diff --git a/project.clj b/project.clj index 4241008..dc03330 100644 --- a/project.clj +++ b/project.clj @@ -55,16 +55,16 @@ [:goals ([:goal "jar"])] [:phase "deploy"]])}]] + :prep-tasks [["shell" "bash" "-c" + "TMP_DIR=\\$(mktemp -d) && \\ + wget -nv https://downloads.metabase.com/\\$METABASE_VERSION/metabase.jar -O \\$TMP_DIR/metabase.jar && \\ + mkdir -p repo && \\ + mvn deploy:deploy-file -Durl=file:repo -DgroupId=com.firebolt -DartifactId=metabase-core -Dversion=1.40 -Dpackaging=jar -Dfile=\\$TMP_DIR/metabase.jar"] + "javac" "compile"] :profiles {:provided - {:dependencies [[com.firebolt/metabase-core "1.40"]] - :prep-tasks [["shell" "bash" "-c" - "TMP_DIR=\\$(mktemp -d) && \\ - wget -nv https://downloads.metabase.com/\\$METABASE_VERSION/metabase.jar -O \\$TMP_DIR/metabase.jar && \\ - mkdir -p repo && \\ - mvn deploy:deploy-file -Durl=file:repo -DgroupId=com.firebolt -DartifactId=metabase-core -Dversion=1.40 -Dpackaging=jar -Dfile=\\$TMP_DIR/metabase.jar"] - "javac" "compile"]} + {:dependencies [[com.firebolt/metabase-core "1.40"]]} :uberjar {:auto-clean true