(defproject wanijo "0.3.0"
  :description "Graph Database via UI"
  :url "https://gitea.heevyis.ninja/josha/wanijo"
  :min-lein-version "2.9.0"
  :license {:name "GPL-3.0"
            :url "https://opensource.org/licenses/GPL-3.0"}

  :dependencies [;;clojure core
                 [org.clojure/clojure "1.10.1"]

                 ;; static site
                 [compojure "1.6.1"]
                 [ring/ring-defaults "0.3.2"]
                 [ring/ring-jetty-adapter "1.8.0"
                  :exclusions [ring/ring-core
                               ring/ring-codec
                               commons-io
                               commons-codec]]
                 [ring/ring-json "0.5.0"]
                 [hiccup "1.0.5"]
                 [joshavg/formulare "0.6.0"]

                 ;; compojure uses old transitive dependencies of ring
                 ;; specifiy them here explicitly so newer versions
                 ;; will be used
                 [ring/ring-core "1.8.0"]
                 [ring/ring-codec "1.1.2"]

                 ;; neo4j
                 [gorillalabs/neo4j-clj "2.0.1"
                  :exclusions [org.bouncycastle/bcprov-jdk15on
                               org.bouncycastle/bcpkix-jdk15on
                               com.github.ben-manes.caffeine/caffeine]]

                 ;; additional server side libs
                 [buddy/buddy-hashers "1.4.0"
                  :exclusions [commons-codec]]
                 [clj-time "0.15.2"]
                 [markdown-clj "1.10.4"]
                 [dorothy "0.0.7"]]

  :profiles {:dev {:plugins [;; neo4j db
                             [joshavg/lein-neo4j "0.5.0"]

                             ;; web stuff
                             [lein-less "1.7.5"]

                             ;; code quality
                             [lein-ancient "LATEST"]
                             [jonase/eastwood "LATEST"]
                             [lein-bikeshed "LATEST"]
                             [lein-cloverage "LATEST"]
                             [lein-kibit "LATEST"]]}
             :uberjar {:aot :all
                       :main wanijo.main}}

  :neo4j {:path "neo4j"}
  :repl-options {:init-ns wanijo.infrastructure.repl}
  :less {:source-paths ["resources/app/stylesheets"]
         :target-path "resources/public/css"}
  :aliases {"uberjar" ["do" ["less" "once"] "uberjar"]}
  :hiera {:cluster-depth 2}
  :eastwood {:namespaces [:source-paths]})
