From eddd9400182e6ffab1c6efb1b6f8030b750ff979 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sat, 25 Sep 2021 17:50:56 -0700 Subject: [PATCH] note snapshot availability Also tweak version in build script. --- README.md | 2 ++ build.clj | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 47e2ee3..1daf6c1 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ The documentation on GitHub is for **develop** since the 1.2.724 release -- [see This project follows the version scheme MAJOR.MINOR.COMMITS where MAJOR and MINOR provide some relative indication of the size of the change, but do not follow semantic versioning. In general, all changes endeavor to be non-breaking (by moving to new names rather than by breaking existing names). COMMITS is an ever-increasing counter of commits since the beginning of this repository. +> Note: every commit to the **develop** branch runs CI (GitHub Actions) and successful runs push a MAJOR.MINOR.999-SNAPSHOT build to Clojars so the very latest version of `next.jdbc` is always available either via that [snapshot on Clojars](https://clojars.org/com.github.seancorfield/next.jdbc) or via a git dependency on the latest SHA. + ## Motivation Why another JDBC library? Why a different API from `clojure.java.jdbc`? diff --git a/build.clj b/build.clj index e13c606..af6462f 100644 --- a/build.clj +++ b/build.clj @@ -15,8 +15,9 @@ [org.corfield.build :as bb])) (def lib 'com.github.seancorfield/next.jdbc) -(def version (format "1.2.%s" (b/git-count-revs nil))) -(def snapshot "1.2.999-SNAPSHOT") +(defn- the-version [patch] (format "1.2.%s" patch)) +(def version (the-version (b/git-count-revs nil))) +(def snapshot (the-version "999-SNAPSHOT")) (defn test "Run all the tests." [opts] (reduce (fn [opts alias]