Skip to content

Commit

Permalink
Add local m2 to let us zip & share the repo standalone
Browse files Browse the repository at this point in the history
With a project-local .m2, we can share workshop deps cleanly without
having to worry about leaking our own ~/.m2 which may have
proprietary or "production" jars.

With this change we can simply execute lein deps, and zip the entire
project so it becomes shareable standalone.

Not sure if this will work for Windows users, but at least they will
have the deps, and can copy them into whatever local m2 location works
for them.
  • Loading branch information
adityaathalye committed Feb 8, 2020
1 parent d03ab54 commit 9d6773a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -12,4 +12,5 @@ pom.xml.asc
.setup.sh
profiles.clj
.idea
.m2-for-inclojure
*.iml
1 change: 1 addition & 0 deletions project.clj
Expand Up @@ -5,6 +5,7 @@
:url "https://opensource.org/licenses/MIT"}
;; Requirements: Java 8 or higher (recommended: Java 8 or Java 11)
:dependencies [[org.clojure/clojure "1.10.0"]]
:local-repo ".m2-for-inclojure"
:profiles {:dev {:dependencies [[org.clojure/data.json "0.2.6"]
[enlive "1.1.6"]
[rewrite-clj "0.6.1"]]}})

0 comments on commit 9d6773a

Please sign in to comment.