serpro69 / semver.kt

Semantic versioning gradle plugin via git tags, plus a kotlin implementation of semver spec and a semantic release versioning library
MIT License
7 stars 2 forks source link

allow setting version via command line #9

Closed serpro69 closed 11 months ago

serpro69 commented 11 months ago

Using -Pversion won't work, since it will be overwritten by plugin. Checking if version property exists also doesn't work, because it always exists in gradle, even if the value is unspecified. Nevertheless, there should be a possibility to set the version manually.

serpro69 commented 11 months ago

Maybe we could do

if all checks pass - assume we're setting it from command line via -Pversion