diff --git a/deps.edn b/deps.edn index 79703cf..643d2d9 100644 --- a/deps.edn +++ b/deps.edn @@ -50,7 +50,7 @@ org.apache.logging.log4j/log4j-jul {:mvn/version "2.24.3"} org.apache.logging.log4j/log4j-slf4j-impl {:mvn/version "2.24.3"} org.apache.logging.log4j/log4j-slf4j2-impl {:mvn/version "2.24.3"}} - :jvm-opts ["-Dlog4j2.configurationFile=log4j2-info.properties" - ;; for SQLite on JDK 24: - "--enable-native-access=ALL-UNNAMED"]} - :runner {:main-opts ["-m" "lazytest.main"]}}} + :jvm-opts ["-Dlog4j2.configurationFile=log4j2-info.properties"]} + :runner {:main-opts ["-m" "lazytest.main"]} + :jdk24 {:jvm-opts [;; for SQLite on JDK 24 locally + "--enable-native-access=ALL-UNNAMED"]}}} diff --git a/run-tests.clj b/run-tests.clj index 4d37d2c..f86bd9f 100755 --- a/run-tests.clj +++ b/run-tests.clj @@ -5,9 +5,13 @@ (defn- run-tests [env v] (when v (println "\nTesting Clojure" v)) (let [{:keys [exit]} - (p/shell {:extra-env env} "clojure" (str "-M" - (when v (str ":" v)) - ":test:runner") + (p/shell {:extra-env env} + "clojure" + (str "-M" + (when v (str ":" v)) + ":test:runner" + ;; to suppress native access warnings on JDK24: + ":jdk24") "--output" "dots")] (when-not (zero? exit) (System/exit exit))))