From a117b3146c935cfaaeabda97eee0cbcccf597ad6 Mon Sep 17 00:00:00 2001 From: John Tyree Date: Mon, 16 Jan 2023 16:38:22 -0500 Subject: [PATCH 1/3] Ignore ./.lsp language server dir --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index d73296b94..537b77d21 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ pom.xml .lein-repl-history .lein-plugins/ .lein-* +.lsp .idea orcpub.iml profiles.clj From d1480a72f1bada41e52feb3ad611abd46fb8fb5d Mon Sep 17 00:00:00 2001 From: John Tyree Date: Mon, 16 Jan 2023 16:46:26 -0500 Subject: [PATCH 2/3] Set lib/ to be treated as a local jar repo. pdfbox and its deps are not available upstream in clojars or anywhere else. This allows leiningen to load them from jars stuffed into ./lib. With this, you can start from a clean machine and `lein repl` will "just work" because it will load things from `lib` as if they were upstream. Fixes #539. --- project.clj | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/project.clj b/project.clj index ec104e077..4e348d1b2 100644 --- a/project.clj +++ b/project.clj @@ -15,7 +15,11 @@ :repositories [["apache" "http://repository.apache.org/snapshots/"] ["my.datomic.com" {:url "https://my.datomic.com/repo" :username [:gpg :env] - :password [:gpg :env]}]] + :password [:gpg :env]}] + ["local" {:url "file:lib" + :checksum :ignore + :releases {:checksum :ignore}}] + ] :mirrors {"apache" {:url "https://repository.apache.org/snapshots/"}} :dependencies [[org.clojure/clojure "1.10.0"] @@ -66,6 +70,7 @@ :plugins [[lein-figwheel "0.5.19"] [lein-cljsbuild "1.1.7" :exclusions [[org.clojure/clojure]]] + [lein-localrepo "0.5.4"] [lein-garden "0.3.0"] [lein-environ "1.1.0"] [lein-cljfmt "0.6.8"] From a68d0cea444e5370b2ee35bb1da2ae2fb8d41b52 Mon Sep 17 00:00:00 2001 From: John Tyree Date: Tue, 17 Jan 2023 00:11:37 -0500 Subject: [PATCH 3/3] Add comment on why we're using a local repo --- project.clj | 1 + 1 file changed, 1 insertion(+) diff --git a/project.clj b/project.clj index 4e348d1b2..8cc622297 100644 --- a/project.clj +++ b/project.clj @@ -16,6 +16,7 @@ ["my.datomic.com" {:url "https://my.datomic.com/repo" :username [:gpg :env] :password [:gpg :env]}] + ; This allows us to seamlessly load jars from local disk. ["local" {:url "file:lib" :checksum :ignore :releases {:checksum :ignore}}]