sbt / sbt-dynver

An sbt plugin to dynamically set your version from git
Apache License 2.0
300 stars 47 forks source link

Should this plugin only be enabled on CI environment? #234

Open jtjeferreira opened 2 years ago

jtjeferreira commented 2 years ago

This is more a topic for discussion, than an issue, but I realized my target folder is filled with duplicate jars with different versions like the picture shows:

image

I think I fixed it with version ~= (v => if(!ENV.isCI) "1.2.3-SNAPSHOT" else v),

WDYT?

mkurz commented 1 year ago

In Play we will now do exactly that: https://github.com/playframework/playframework/pull/11625 - so devs locally use a version string without distance, sha or the dirty part, simple like: 2.8.20.SNAPSHOT, but when running on CI it uses the full version string.