Skip to content

Commit

Permalink
Move JDBC connector deps to :dev alias (#18)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Update README.md

Co-authored-by: Timo Kramer <[email protected]>

* Bump library version in build.clj

---------

Co-authored-by: Timo Kramer <[email protected]>
  • Loading branch information
PavlosMelissinos and TimoKramer authored Sep 2, 2023
1 parent 0b68d31 commit faaf200
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion bin/kaocha
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

clojure -M:test -m kaocha.runner "$@"
clojure -M:dev:test -m kaocha.runner "$@"
2 changes: 1 addition & 1 deletion build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
18 changes: 9 additions & 9 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -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"}}
Expand Down

0 comments on commit faaf200

Please sign in to comment.