Skip to content

Commit

Permalink
Add deps and build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos410 committed Jul 18, 2023
1 parent 95602eb commit 6b63012
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Example for building the driver with bash or similar

DRIVER_PATH=`pwd`

# switch to the local checkout of the Metabase repo
cd ../metabase

# get absolute path to the driver project directory

clojure \
-Sdeps "{:aliases {:firebird {:extra-deps {evosec/firebird-driver {:local/root \"$DRIVER_PATH\"}}}}}" \
-X:build:firebird \
build-drivers.build-driver/build-driver! \
"{:driver :firebird, :project-dir \"$DRIVER_PATH\", :target-dir \"$DRIVER_PATH/target\"}"
16 changes: 16 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{:paths
["src" "resources"]


:deps
{org.firebirdsql.jdbc/jaybird {:mvn/version "4.0.2.java8"}}

;; build the driver with clojure -X:build
:aliases
{:build
{:extra-deps {metabase/metabase-core {:local/root "../metabase"}
metabase/build-drivers {:local/root "../metabase/bin/build-drivers"}}
:exec-fn build-drivers.build-driver/build-driver!
:exec-args {:driver :firebird
:project-dir "."
:target-dir "./target"}}}}

0 comments on commit 6b63012

Please sign in to comment.