From faaf2002b71dac475159c94ce64c9e0960c7b73c Mon Sep 17 00:00:00 2001 From: Pavlos Date: Sat, 2 Sep 2023 19:49:40 +0300 Subject: [PATCH] Move JDBC connector deps to :dev alias (#18) * Move JDBC connector deps to :dev alias * Revert deps align * Unalign dev alias deps * Add JDBC drivers to test runner * Add README note about breaking change * Update README.md Co-authored-by: Timo Kramer <4785848+TimoKramer@users.noreply.github.com> * Update README.md Co-authored-by: Timo Kramer <4785848+TimoKramer@users.noreply.github.com> * Bump library version in build.clj --------- Co-authored-by: Timo Kramer <4785848+TimoKramer@users.noreply.github.com> --- README.md | 9 +++++++-- bin/kaocha | 2 +- build.clj | 2 +- deps.edn | 18 +++++++++--------- 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 6e863d1..d053620 100644 --- a/README.md +++ b/README.md @@ -76,8 +76,13 @@ Add to your dependencies: ## Supported Databases -Not all databases available for JDBC have been tested to work with this implementation. -Other databases might still work, but there is no guarantee. +**BREAKING CHANGE**: konserve-jdbc versions after `0.1.79` no longer include +actual JDBC drivers. Before you upgrade please make sure your application +provides the necessary dependencies. + +Not all databases available for JDBC have been tested to work with this implementation. +Other databases might still work, but there is no guarantee. Please see working +drivers in the dev-alias in the `deps.edn` file. If you are interested in another database, please feel free to contact us. Fully supported so far are the following databases: diff --git a/bin/kaocha b/bin/kaocha index 30ff6d7..87a66a2 100755 --- a/bin/kaocha +++ b/bin/kaocha @@ -1,3 +1,3 @@ #!/usr/bin/env bash -clojure -M:test -m kaocha.runner "$@" +clojure -M:dev:test -m kaocha.runner "$@" diff --git a/build.clj b/build.clj index 1b979e0..48fde73 100644 --- a/build.clj +++ b/build.clj @@ -8,7 +8,7 @@ (def org "replikativ") (def lib 'io.replikativ/konserve-jdbc) (def current-commit (b/git-process {:git-args "rev-parse HEAD"})) -(def version (format "0.1.%s" (b/git-count-revs nil))) +(def version (format "0.2.%s" (b/git-count-revs nil))) (def class-dir "target/classes") (def basis (b/create-basis {:project "deps.edn"})) (def jar-file (format "target/%s-%s.jar" (name lib) version)) diff --git a/deps.edn b/deps.edn index 5bbaa1e..3715e8e 100644 --- a/deps.edn +++ b/deps.edn @@ -1,19 +1,19 @@ {:paths ["src"] - :deps {com.h2database/h2 {:mvn/version "2.1.214"} - com.microsoft.sqlserver/mssql-jdbc {:mvn/version "9.4.1.jre11"} - com.taoensso/timbre {:mvn/version "6.1.0"} + :deps {com.taoensso/timbre {:mvn/version "6.1.0"} com.fzakaria/slf4j-timbre {:mvn/version "0.3.21"} io.replikativ/konserve {:mvn/version "0.7.311"} io.replikativ/superv.async {:mvn/version "0.3.46"} - mysql/mysql-connector-java {:mvn/version "8.0.25"} - org.apache.derby/derby {:mvn/version "10.16.1.1"} org.clojure/clojure {:mvn/version "1.11.1"} - org.postgresql/postgresql {:mvn/version "42.6.0"} - org.xerial/sqlite-jdbc {:mvn/version "3.41.2.2"} com.github.seancorfield/next.jdbc {:mvn/version "1.3.874"} com.mchange/c3p0 {:mvn/version"0.9.5.5"}} - :aliases {:test {:extra-deps {lambdaisland/kaocha {:mvn/version "1.83.1314"}} - :extra-paths ["test"]} + :aliases {:dev {:extra-paths ["test"] + :extra-deps {com.h2database/h2 {:mvn/version "2.1.214"} + com.microsoft.sqlserver/mssql-jdbc {:mvn/version "9.4.1.jre11"} + mysql/mysql-connector-java {:mvn/version "8.0.25"} + org.apache.derby/derby {:mvn/version "10.16.1.1"} + org.postgresql/postgresql {:mvn/version "42.6.0"} + org.xerial/sqlite-jdbc {:mvn/version "3.41.2.2"}}} + :test {:extra-deps {lambdaisland/kaocha {:mvn/version "1.83.1314"}}} :format {:extra-deps {cljfmt/cljfmt {:mvn/version "0.9.2"}} :main-opts ["-m" "cljfmt.main" "check"]} :ffix {:extra-deps {cljfmt/cljfmt {:mvn/version "0.9.2"}}