How to add release.useAutomaticVersion=true in build.gradle file for auto versioning?

2k Views Asked by At

I'm running gradle-release command as follows but I need to movr release.useAutomaticVersion=true inside build.gradle.

./gradlew gitOperations release -Prelease.useAutomaticVersion=true

1

There are 1 best solutions below

2
On BEST ANSWER

Adding

release.useAutomaticVersion=true

to my gradle.properties inside the project dir why I apply the release plugin works perfectly. You really added this to the gradle.properties and not the build.gradle ?