switch to basic ring + compojure project

This commit is contained in:
Travis Shears 2025-06-05 09:47:58 +02:00
parent c652b828e8
commit faa7131ee3
21 changed files with 46 additions and 978 deletions

View file

@ -1,23 +1,25 @@
{:paths ["src" "resources" "target/resources"]
:deps {com.biffweb/biff #:git{:url "https://github.com/jacobobryant/biff", :sha "1570ccc", :tag "v1.8.29"}
camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.3"}
metosin/muuntaja {:mvn/version "0.6.8"}
ring/ring-defaults {:mvn/version "0.3.4"}
org.clojure/clojure {:mvn/version "1.11.1"}
{:paths ["src"]
:deps {ring/ring-core {:mvn/version "1.13.0"}
ring/ring-jetty-adapter {:mvn/version "1.13.0"}
;; logging, required by jetty:
org.slf4j/slf4j-simple {:mvn/version "2.0.16"}
;; Notes on logging: https://gist.github.com/jacobobryant/76b7a08a07d5ef2cc076b048d078f1f3
org.slf4j/slf4j-simple {:mvn/version "2.0.0-alpha5"}
org.slf4j/log4j-over-slf4j {:mvn/version "1.7.36"}
org.slf4j/jul-to-slf4j {:mvn/version "1.7.36"}
org.slf4j/jcl-over-slf4j {:mvn/version "1.7.36"}}
:aliases
{:dev {:extra-deps {com.biffweb/tasks {:git/url "https://github.com/jacobobryant/biff", :git/sha "1570ccc", :git/tag "v1.8.29", :deps/root "libs/tasks"}}
:extra-paths ["dev" "test"]
:jvm-opts ["-XX:-OmitStackTraceInFastThrow"
"-XX:+CrashOnOutOfMemoryError"
"-Dbiff.env.BIFF_PROFILE=dev"]
:main-opts ["-m" "com.biffweb.task-runner" "tasks/tasks"]}
:prod {:jvm-opts ["-XX:-OmitStackTraceInFastThrow"
"-XX:+CrashOnOutOfMemoryError"
"-Dbiff.env.BIFF_PROFILE=prod"]
:main-opts ["-m" "snippets"]}}}
;; routing:
compojure/compojure {:mvn/version "1.7.1"}
;; convenient package of "default" middleware:
ring/ring-defaults {:mvn/version "0.5.0"}
org.clojure/clojure {:mvn/version "1.12.1"}}}
;; :aliases
;; {:dev {:extra-deps {com.biffweb/tasks {:git/url "https://github.com/jacobobryant/biff", :git/sha "1570ccc", :git/tag "v1.8.29", :deps/root "libs/tasks"}}
;; :extra-paths ["dev" "test"]
;; :jvm-opts ["-XX:-OmitStackTraceInFastThrow"
;; "-XX:+CrashOnOutOfMemoryError"
;; "-Dbiff.env.BIFF_PROFILE=dev"]
;; :main-opts ["-m" "com.biffweb.task-runner" "tasks/tasks"]}
;; :prod {:jvm-opts ["-XX:-OmitStackTraceInFastThrow"
;; "-XX:+CrashOnOutOfMemoryError"
;; "-Dbiff.env.BIFF_PROFILE=prod"]
;; :main-opts ["-m" "snippets"]}}}