diff --git a/README.md b/README.md index 7542f3a..3fb20e7 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,12 @@ __Roll__ makes it easy for your project to include a ___Webserver___ ([Http-kit] `roll` is published on [Clojars](https://clojars.org/dimovich/roll). Add the following to your `project.clj`'s `:dependencies`: - [dimovich/roll "0.3.2"] + [dimovich/roll "0.3.337"] ## Clojure CLI/deps.edn - dimovich/roll {:mvn/version "0.3.2"} + dimovich/roll {:mvn/version "0.3.337"} ## Example @@ -36,7 +36,7 @@ __deps.edn__ ``` clojure {:paths ["src"] - :deps {dimovich/roll {:mvn/version "0.3.2"}}} + :deps {dimovich/roll {:mvn/version "0.3.337"}}} ``` diff --git a/build.clj b/build.clj index 5caf9f9..d9f1e9b 100644 --- a/build.clj +++ b/build.clj @@ -11,12 +11,18 @@ (b/delete {:path "target"})) (defn jar [_] - (b/write-pom {:class-dir class-dir + (b/write-pom {:src-pom "template/pom.xml" + :class-dir class-dir :lib lib :version version :basis basis :src-dirs ["src"]}) - (b/copy-dir {:src-dirs ["src"] + + (b/copy-dir {:src-dirs ["src/clj" "src/cljc" "src/cljs"] :target-dir class-dir}) + + (b/copy-file {:src "src/data_readers.clj" + :target (str class-dir "/data_readers.clj")}) + (b/jar {:class-dir class-dir :jar-file jar-file})) diff --git a/example/deps.edn b/example/deps.edn index ccd478c..edfb085 100644 --- a/example/deps.edn +++ b/example/deps.edn @@ -1,10 +1,12 @@ {:paths ["src"] - :deps {org.clojure/clojure {:mvn/version "1.10.1"} - org.clojure/clojurescript {:mvn/version "1.10.773"} - hiccup {:mvn/version "2.0.0-alpha1"} - reagent {:mvn/version "0.10.0"} - dimovich/roll {:mvn/version "0.3.2"}} + :deps {org.clojure/clojure {:mvn/version "1.11.1"} + org.clojure/clojurescript {:mvn/version "1.11.60"} + hiccup/hiccup {:mvn/version "2.0.0-alpha2"} + reagent/reagent {:mvn/version "1.1.1"} + cljsjs/react {:mvn/version "17.0.2-0"} + cljsjs/react-dom {:mvn/version "17.0.2-0"} + dimovich/roll {:mvn/version "0.3.337"}} :aliases @@ -14,16 +16,12 @@ :frontend {:extra-paths ["resources"] - :extra-deps {com.bhauman/figwheel-main {:mvn/version "0.2.11"}} - :main-opts ["-m figwheel.main" "-b dev"]} + :extra-deps {com.bhauman/figwheel-main {:mvn/version "0.2.18"}} + :main-opts ["-m" "figwheel.main" "-b" "dev"]} :prod - {:main-opts ["-m cljs.main -co prod.cljs.edn -c example.client"]} + {:main-opts ["-m" "cljs.main" "-co" "prod.cljs.edn" "-c" "example.client"]} :cider {:extra-paths ["resources"] - :extra-deps {com.bhauman/figwheel-main {:mvn/version "0.2.11"}}} - - :uberjar - {:extra-deps {seancorfield/depstar {:mvn/version "1.0.94"}} - :main-opts ["-m hf.depstar.uberjar example.jar"]}}} + :extra-deps {com.bhauman/figwheel-main {:mvn/version "0.2.18"}}}}} diff --git a/template/pom.xml b/template/pom.xml new file mode 100644 index 0000000..310f04b --- /dev/null +++ b/template/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + dimovich + roll + roll + Simple backend for Clojure. + https://github.com/dimovich/roll + + scm:git:git://github.com/dimovich/roll.git + scm:git:ssh://git@github.com/dimovich/roll.git + https://github.com/dimovich/roll + +