Skip to content

Commit

Permalink
[nop] Update project template
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Feb 9, 2024
1 parent 29664c4 commit c8b229b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 25 deletions.
13 changes: 13 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Security policy

## Advisories

All security advisories will be posted [on GitHub](https://github.com/taoensso/sente/security/advisories).

## Reporting a vulnerability

Please report possible security vulnerabilities [via GitHub](https://github.com/taoensso/sente/security/advisories), or by emailing me at `my first name at taoensso.com`. You may encrypt emails with [my public PGP/GPG key](https://www.taoensso.com/pgp).

Thank you!

\- [Peter Taoussanis](https://www.taoensso.com)
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
48 changes: 24 additions & 24 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,30 @@
[org.clojure/tools.reader "1.3.6"]
[com.taoensso/timbre "6.2.2"]]

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

:profiles
{;; :default [:base :system :user :provided :dev]
:provided {:dependencies [[org.clojure/clojurescript "1.11.60"]
[org.clojure/clojure "1.11.1"]]}
:c1.11 {:dependencies [[org.clojure/clojure "1.11.1"]]}
:c1.10 {:dependencies [[org.clojure/clojure "1.10.2"]]}

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

:community
{:dependencies
[[org.immutant/web "2.1.10"]
[nginx-clojure "0.6.0"]
[aleph "0.6.3"]
[macchiato/core "0.2.23"] ; Note 0.2.24 seems to fail?
[macchiato/core "0.2.23"] ; 0.2.24 seems to fail?
[luminus/ring-undertow-adapter "1.3.1"]
[info.sunng/ring-jetty9-adapter "0.22.0"]]

Expand All @@ -37,8 +48,9 @@
"--add-opens=java.base/sun.nio.cs=ALL-UNNAMED"
"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED"]}

:test
{:jvm-opts ["-Dtaoensso.elide-deprecated=true"]
:dev [:dev+ :community]
:dev+
{:jvm-opts ["-server" "-Dtaoensso.elide-deprecated=true"]
:global-vars
{*warn-on-reflection* true
*assert* true
Expand All @@ -48,29 +60,17 @@
[[com.cognitect/transit-clj "1.0.333"]
[com.cognitect/transit-cljs "0.8.280"]
[org.clojure/test.check "1.1.1"]
[http-kit "2.7.0"]]}
[http-kit "2.7.0"]]

:graal-tests
{:dependencies [[org.clojure/clojure "1.11.1"]
[com.github.clj-easy/graal-build-time "0.1.4"]]
:main taoensso.graal-tests
:aot [taoensso.graal-tests]
:uberjar-name "graal-tests.jar"}
:plugins
[[lein-pprint "1.3.2"]
[lein-ancient "0.7.0"]
[lein-cljsbuild "1.1.8"]
[com.taoensso.forks/lein-codox "0.10.10"]]

:dev
[:c1.11 :community :test
{:jvm-opts ["-server"]
:plugins
[[lein-pprint "1.3.2"]
[lein-ancient "0.7.0"]
[lein-cljsbuild "1.1.8"]
[com.taoensso.forks/lein-codox "0.10.10"]]

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

:test-paths ["test" #_"src"]
:codox
{:language #{:clojure :clojurescript}
:base-language :clojure}}}

:cljsbuild
{:test-commands {"node" ["node" "target/test.js"]}
Expand Down

0 comments on commit c8b229b

Please sign in to comment.