I am using gradle, I added the plugin
plugins {
id 'pl.allegro.tech.build.axion-release' version '1.14.0'
}
now when I am running
./gradlew currentVersion
I am getting
Project version: 0.1.0-SNAPSHOT
I tried adding a gradle.properties that contains
version=0.0.1-SNAPSHOT
But when running
./gradlew currentVersion
it still returns 0.1.0-SNAPSHOT
I'd like to know where that's coming from and if it's possible to use the value from gradle.properties, or what's the best way to use the version with the plugin.
Thanks.
If it still return
0.1.0-SNAPSHOT, that's by design. As stated by Adam Dubiel from Allegro:Then your can have a look at the documentation or at Allegro tech blog:
Here is an example of the flow:
I hope this helps, despite the late reply