Skip to content

Commit

Permalink
Update project template
Browse files Browse the repository at this point in the history
Sync project boilerplate used across Taoensso libraries to help keep
things easier to maintain.

Changes:

  - Fix Graal build issue
  - Remove unnecessary Lein composite profile (fixes deprecation warning)
  - Update GitHub action dependencies (fixed deprecation warning)
  • Loading branch information
ptaoussanis committed Feb 29, 2024
1 parent 0de2499 commit 3d5af25
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
4 changes: 3 additions & 1 deletion bb/graal_tests.clj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
(let [graalvm-home (System/getenv "GRAALVM_HOME")
bin-dir (str (fs/file graalvm-home "bin"))]
(shell (executable bin-dir "gu") "install" "native-image")
(shell (executable bin-dir "native-image") "-jar" "target/graal-tests.jar" "--no-fallback" "graal_tests")))
(shell (executable bin-dir "native-image")
"--features=clj_easy.graal_build_time.InitClojureClasses"
"--no-fallback" "-jar" "target/graal-tests.jar" "graal_tests")))

(defn run-tests []
(let [{:keys [out]} (shell {:out :string} (executable "." "graal_tests"))]
Expand Down
50 changes: 25 additions & 25 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(defproject com.taoensso/faraday "1.12.1-SNAPSHOT"
:author "Peter Taoussanis <https://www.taoensso.com>"
:description "Amazon DynamoDB client for Clojure"
:url "https://github.com/taoensso/faraday"
:url "https://www.taoensso.com/faraday"

:license
{:name "Eclipse Public License - v 1.0"
Expand All @@ -15,45 +15,45 @@
[com.amazonaws/aws-java-sdk-dynamodb "1.12.581"
:exclusions [joda-time commons-logging]]]

:test-paths ["test" #_"src"]

:profiles
{;; :default [:base :system :user :provided :dev]
:provided {:dependencies [[org.clojure/clojure "1.11.1"]]}
:c1.11 {:dependencies [[org.clojure/clojure "1.11.1"]]}
:c1.10 {:dependencies [[org.clojure/clojure "1.10.3"]]}
:c1.9 {:dependencies [[org.clojure/clojure "1.9.0"]]}

:test
{:jvm-opts ["-Dtaoensso.elide-deprecated=true"]
:global-vars
{*warn-on-reflection* true
*assert* true
*unchecked-math* false #_:warn-on-boxed}}

:graal-tests
{:dependencies [[org.clojure/clojure "1.11.1"]
[com.github.clj-easy/graal-build-time "0.1.4"]]
{:source-paths ["test"]
:main taoensso.graal-tests
:aot [taoensso.graal-tests]
:uberjar-name "graal-tests.jar"}
:uberjar-name "graal-tests.jar"
:dependencies
[[org.clojure/clojure "1.11.1"]
[com.github.clj-easy/graal-build-time "1.0.5"]]}

:dev
[:c1.11 :test
{:jvm-opts ["-server"]
:dependencies
[[org.testcontainers/testcontainers "1.19.1"
:exclusions [com.fasterxml.jackson.core/jackson-annotations]]
[org.slf4j/slf4j-simple "1.7.36"]]
{:jvm-opts ["-server" "-Dtaoensso.elide-deprecated=true"]

:plugins
[[lein-pprint "1.3.2"]
[lein-ancient "0.7.0"]
[com.taoensso.forks/lein-codox "0.10.10"]]
:global-vars
{*warn-on-reflection* true
*assert* true
*unchecked-math* false #_:warn-on-boxed}

:codox
{:language #{:clojure #_:clojurescript}
:base-language :clojure}}]}
:dependencies
[[org.testcontainers/testcontainers "1.19.1"
:exclusions [com.fasterxml.jackson.core/jackson-annotations]]
[org.slf4j/slf4j-simple "1.7.36"]]

:test-paths ["test" #_"src"]
:plugins
[[lein-pprint "1.3.2"]
[lein-ancient "0.7.0"]
[com.taoensso.forks/lein-codox "0.10.11"]]

:codox
{:language #{:clojure #_:clojurescript}
:base-language :clojure}}}

:aliases
{"start-dev" ["with-profile" "+dev" "repl" ":headless"]
Expand Down

0 comments on commit 3d5af25

Please sign in to comment.