Open seancorfield opened 10 months ago
Initially, my thinking about deps-deploy
was to do one thing, and one thing only - deploy your stuff to a repository.
In deps-deploy, I use depstar
to produce the jar, and one could (perhaps) argue that the verification step might live there, or even as a separate thing in-between depstar
and deps-deploy
.
So in short, I think I'd rather not, but I don't have very strong feelings either way.
Not sure what depstar
has to do with anything here? I think you misunderstood what I'm asking here.
I might very well have misunderstood. Reading over it again, it seems to me that you're asking for two things:
I hope that I managed to understand you better on my second reading through?
Alex says the Maven deploy plugin renames the JAR you give it to <artifact>(-<classifier>)?-<version>.jar
which is what is required for Maven/Clojars etc to be able to server the artifact correctly so the validation/renaming question was intended to get parity in tooling support from deps-deploy
.
The issue here is that if a user creates their JAR with a non-standard name, deps-deploy
will happily upload it, but no one will be able to depend on it -- which is what happened in the referenced Slack thread.
The classifier/multiple artifacts question sort of falls out of that: if deps-deploy
understands (and enforces) the artifact/classifier/version format, then it might be a reasonable enhancement to support multiple artifacts and classifiers.
See https://github.com/clojure-doc/clojure-doc.github.io/issues/68 and this Slack thread: https://clojurians.slack.com/archives/C0H28NMAS/p1705364966218609
Per Alex: multiple artifacts with different classifiers all share the same pom and usually they are uploaded as part of the same deployment (with normal maven deploy plugin).
Is this something that
deps-deploy
might want to support?If not, is validating the JAR name (to be
artifact-version.jar
) or renaming it to that during uploading something thatdeps-deploy
might want to handle (to avoid the issue in the thread above)?