auto-add :jdk21 for xtdb
Signed-off-by: Sean Corfield <sean@corfield.org>
This commit is contained in:
parent
150a4aa605
commit
e3b80e6128
1 changed files with 6 additions and 2 deletions
|
|
@ -12,7 +12,8 @@
|
||||||
clojure -A:deps -T:build help/doc"
|
clojure -A:deps -T:build help/doc"
|
||||||
(:refer-clojure :exclude [test])
|
(:refer-clojure :exclude [test])
|
||||||
(:require [clojure.tools.build.api :as b]
|
(:require [clojure.tools.build.api :as b]
|
||||||
[deps-deploy.deps-deploy :as dd]))
|
[deps-deploy.deps-deploy :as dd]
|
||||||
|
[clojure.string :as str]))
|
||||||
|
|
||||||
(def lib 'com.github.seancorfield/next.jdbc)
|
(def lib 'com.github.seancorfield/next.jdbc)
|
||||||
(defn- the-version [patch] (format "1.3.%s" patch))
|
(defn- the-version [patch] (format "1.3.%s" patch))
|
||||||
|
|
@ -23,7 +24,10 @@
|
||||||
(defn test "Run all the tests." [opts]
|
(defn test "Run all the tests." [opts]
|
||||||
(doseq [alias [:1.10 :1.11 :1.12]]
|
(doseq [alias [:1.10 :1.11 :1.12]]
|
||||||
(println "\nRunning tests for Clojure" (name alias))
|
(println "\nRunning tests for Clojure" (name alias))
|
||||||
(let [basis (b/create-basis {:aliases [:test alias]})
|
(let [basis (b/create-basis
|
||||||
|
{:aliases (cond-> [:test alias]
|
||||||
|
(str/starts-with? (System/getProperty "java.version") "21")
|
||||||
|
(conj :jdk21))})
|
||||||
cmds (b/java-command
|
cmds (b/java-command
|
||||||
{:basis basis
|
{:basis basis
|
||||||
:main 'clojure.main
|
:main 'clojure.main
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue