leiningen

reefersleep 2025-06-18T13:39:18.185439Z

Is there an easy way to get the name of the path that the jar will be put under when running "lein deploy" ? Before running it, I mean.

reefersleep 2025-06-18T13:43:27.749469Z

e.g. if I run lein deploy our-artifactory-identifier, I get output something like

... WARNINGs ...
Created /Users/me/projects/my-project/target/my-project-0.8.0-SNAPSHOT.jar
... writing pom ...
... sending pom ...
Sending my-project/my-project/0.8.0-SNAPSHOT/my-project-0.8.0-2412312.12312.jar
      to our-artifactory-path
Supposing I want to check if my-project/my-project/0.8.0-SNAPSHOT/my-project-0.8.0-2412312.12312.jar is already at the artifactory - how would I generate that path name?

2025-06-20T23:33:43.259139Z

snapshot dependencies are guaranteed unique version strings, they promise they won't clash with any previous version string

2025-06-20T23:36:25.489879Z

it's sometimes considered bad practice to publish snapshot versions, if you leave the string SNAPSHOT out of your version string, you can check for the exact match of that version. the usual implication is that a SNAPSHOT is for usage developing a library as part of a larger project when a feature crosses between artifacts, and once you have a version meant for long term use you would use a non snapshot version string.

reefersleep 2025-06-18T13:43:52.545439Z

Generically. This is not just for 1 project, so I can't hardcode it 🙂