When you run clojure -T:build uberjar :lib-name 'xx/xx' :version 'dev' :main-ns 'xx.core' first time for example, you'd observe
tools alias is downloading
Downloading: org/clojure/tools.cli/1.0.214/tools.cli-1.0.214.pom from central
Downloading: org/clojure/core.async/1.6.673/core.async-1.6.673.pom from central
Downloading: commons-codec/commons-codec/1.11/commons-codec-1.11.pom from central
Downloading: org/apache/commons/commons-parent/42/commons-parent-42.pom from central
Downloading: org/apache/apache/18/apache-18.pom from central
Downloading: org/clojure/tools.analyzer.jvm/1.2.2/tools.analyzer.jvm-1.2.2.pom from central
Downloading: org/clojure/tools.analyzer/1.1.0/tools.analyzer-1.1.0.pom from central
Downloading: org/clojure/tools.analyzer/1.1.0/tools.analyzer-1.1.0.jar from central
Downloading: org/clojure/tools.cli/1.0.214/tools.cli-1.0.214.jar from central
Downloading: org/clojure/core.async/1.6.673/core.async-1.6.673.jar from central
Downloading: commons-codec/commons-codec/1.11/commons-codec-1.11.jar from central
Downloading: org/clojure/tools.analyzer.jvm/1.2.2/tools.analyzer.jvm-1.2.2.jar from central
Those deps do not get added when processing deps.edn with alias :build, thus when using buildCommand
When alias is added as tools alias in deps.edn:
https://clojure.org/guides/tools_build#_setup
example:
build/build.clj
When you run
clojure -T:build uberjar :lib-name 'xx/xx' :version 'dev' :main-ns 'xx.core'
first time for example, you'd observe tools alias is downloadingThose deps do not get added when processing deps.edn with alias :build, thus when using buildCommand
would cause the build to fail due to those missing ones from deps-lock.json