0

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

Sandeep
  • 15
  • 6
  • Add release.useAutomaticVersion=true to your Gradle.properties – Hillkorn Apr 02 '19 at 05:33
  • 1
    it is not working, build is failing with below error. `Could not set unknown property 'useAutomaticVersion' for object of type net.researchgate.release.ReleaseExtension.` – Sandeep Apr 02 '19 at 09:16

1 Answers1

1

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 ?

Hillkorn
  • 633
  • 4
  • 12
  • That would be well and good, but release overwrites the gradle.properties file to update the version number, so how did you get this to work? – UncleBob Dec 05 '19 at 09:51
  • gradle release replaces the version and should keep other settings as they are. – Hillkorn Dec 06 '19 at 10:50