gradlegradle-release-plugin

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


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


Solution

  • 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 ?