You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.
I have a multi-module project using build-clj (see build.clj file) which sets *project-root* before evaluating various build tasks in build-clj. The tasks clean, jar and install all work correctly, in particular they respect the current setting for *project-root*. This isn't surprising as this is a feature of clojure.tools.build.api.
However, I encountered an issue with the deploy task, in particular the setting for the :artifact option. build-clj currently defaults :artifact to the relative path from *project-root* of the JAR file to deploy, rather than the expected value which is the relative path from the current directory.
To be clear, I believe the setting of :artifact on this line isn't quite correct. The value of jar-file is correctly set, but is not necessarily the same as the expected value for :artifact. I believe this situation has arisen due to a mismatch in expected arguments between clojure.tools.build.api and deps-deploy, as the latter has no concept of *project-root*.
I have a multi-module project using
build-clj
(seebuild.clj
file) which sets*project-root*
before evaluating various build tasks inbuild-clj
. The tasksclean
,jar
andinstall
all work correctly, in particular they respect the current setting for*project-root*
. This isn't surprising as this is a feature ofclojure.tools.build.api
.However, I encountered an issue with the
deploy
task, in particular the setting for the:artifact
option.build-clj
currently defaults:artifact
to the relative path from*project-root*
of the JAR file to deploy, rather than the expected value which is the relative path from the current directory.To be clear, I believe the setting of
:artifact
on this line isn't quite correct. The value ofjar-file
is correctly set, but is not necessarily the same as the expected value for:artifact
. I believe this situation has arisen due to a mismatch in expected arguments betweenclojure.tools.build.api
anddeps-deploy
, as the latter has no concept of*project-root*
.In my case, I worked around this issue by explicitly providing a value for
:artifact
, as can be seen here : https://github.com/steffan-westcott/clj-otel/blob/c2862459652d04b8a311bc742169b9b1b5167468/build.clj#L144The text was updated successfully, but these errors were encountered: