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
First of all, thanks for this plugin, the premise of which I completely agree with. However I'm a little confused by the way SNAPSHOT builds are apparently supposed to happen. As I understand it, to get a SNAPSHOT build (as per the maven convention), I'd have to explicitly make a git version tag with the word -SNAPSHOT in it. However that's logically a contradiction to me. A snapshot by definition is simply the tip of whatever is currently in development. That's why we want to have the shorthash in the version string after all, and thank god lein-v understands this.
So what (I think) I'd like to have is the ability to have lein-v simply insert -SNAPSHOT in the version string if-and-only-if a shorthash is in the version string (seems to me these two cases are exactly equivalent).
The behavior I want to get in the end is for lein deploy to always use the correct repository, and as I understand it, the (hardcoded) convention there is the :snapshots repo if -SNAPSHOT is in the version string, and the :releases repo otherwise. This is documented slightly confusingly here: https://github.com/technomancy/leiningen/blob/stable/doc/DEPLOY.md#deploying-to-maven-central
Apologies if this is already possible somehow and I overlooked it ;-)
The text was updated successfully, but these errors were encountered:
First of all, thanks for this plugin, the premise of which I completely agree with. However I'm a little confused by the way SNAPSHOT builds are apparently supposed to happen. As I understand it, to get a SNAPSHOT build (as per the maven convention), I'd have to explicitly make a git version tag with the word
-SNAPSHOT
in it. However that's logically a contradiction to me. A snapshot by definition is simply the tip of whatever is currently in development. That's why we want to have the shorthash in the version string after all, and thank godlein-v
understands this.So what (I think) I'd like to have is the ability to have
lein-v
simply insert-SNAPSHOT
in the version string if-and-only-if a shorthash is in the version string (seems to me these two cases are exactly equivalent).The behavior I want to get in the end is for
lein deploy
to always use the correct repository, and as I understand it, the (hardcoded) convention there is the:snapshots
repo if-SNAPSHOT
is in the version string, and the:releases
repo otherwise. This is documented slightly confusingly here: https://github.com/technomancy/leiningen/blob/stable/doc/DEPLOY.md#deploying-to-maven-centralApologies if this is already possible somehow and I overlooked it ;-)
The text was updated successfully, but these errors were encountered: