Can't find right version of google closure in maven


using lein, trying to do a fresh install for a clojurescript project on a new computer.

lein deps tries to find:
but this is not available on maven and I get an error.
I can find v20230228 in maven (a day later!) and a “third party” one
org.clojure/google-closure-library-third-party “0.0-20230227-c7c0a541”

How can I get leiningen to force reference the right closure compiler and not download the missing one please? (I can of course manually paste into my .m2 folder but it feels like the wrong thing to do!)


What is your project.clj?

Thanks! it is

(defproject jasminegui "0.1.0-SNAPSHOT"
  :dependencies [[org.clojure/clojure "1.11.3"]
                 [org.clojure/clojurescript "1.11.132"
                  :exclusions [
                 [thheller/shadow-cljs "2.25.2"]
                 [reagent "1.2.0"]
                 [re-frame "1.4.3"]
                 [com.andrewmcveigh/cljs-time "0.5.2"]
                 [cljs-http "0.1.48"]
                 [re-pressed "0.3.2"]
                 [cljs-drag-n-drop/cljs-drag-n-drop "0.1.0"]
                 ;[org.clojars.frozenlock/reagent-contextmenu "0.4.3"]
                 [lilactown/helix "0.2.0"]
                 [binaryage/devtools "1.0.6"]
                 ;[      "0  .6.2"]
                 ;[ "1.5.0"]
                 ;[com.cnuernber/tmdjs "2.000-beta-10"]

                 [org.slf4j/slf4j-nop "2.0.5"]


  :plugins []
  :min-lein-version "2.5.3"
  :source-paths ["src/clj" "src/cljs"]
  :clean-targets ^{:protect false} ["resources/public/js/compiled" "target"]
  :aliases {"dev"  ["with-profile" "dev" "run" "-m" "shadow.cljs.devtools.cli" "watch" "app"]
            "prod" ["with-profile" "prod" "run" "-m" "shadow.cljs.devtools.cli" "release" "app"]}
  :profiles {:dev {:dependencies []} :prod {}})

and the error is:

Retrieving com/google/javascript/closure-compiler-unshaded/v20220502/closure-compiler-unshaded-v20220502.pom from central
Retrieving com/google/javascript/closure-compiler-main/v20220502/closure-compiler-main-v20220502.pom from central
Retrieving com/google/javascript/closure-compiler-parent/v20220502/closure-compiler-parent-v20220502.pom from central
Retrieving com/google/javascript/closure-compiler-unshaded/v20220502/closure-compiler-unshaded-v20220502.jar from central
Retrieving org/clojure/google-closure-library/0.0-20230227-c7c0a541/google-closure-library-0.0-20230227-c7c0a541.jar from central
Could not transfer artifact org.clojure:google-closure-library:jar:0.0-20230227-c7c0a541 from/to central (
GET request of: org/clojure/google-closure-library/0.0-20230227-c7c0a541/google-closure-library-0.0-20230227-c7c0a541.jar from central failed
Could not find artifact org.clojure:google-closure-library:jar:0.0-20230227-c7c0a541 in clojars (
This could be due to a typo in :dependencies, file system permissions, or network issues.

which is right, it doesn’t exist.

That is the correct version? I don’t know where you are finding v20230228. That definitely does not exist for me?

Thanks Thomas - interesting - it looks like lein is trying to take me there

Correct, that does exist. It is however an entirely different artifact and the versions aren’t related much. Entirely coincidental that there happens to be a release with a date a day later.

1 Like

Turns out the office firewall decided to specifically identify Google closure as a threat (and not other clojars or maven packages…) thanks all for your help