{"action":"opened","issue":{"url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/153","repository_url":"https://api.github.com/repos/allegro/axion-release-plugin","labels_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/153/comments","events_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/153/events","html_url":"https://github.com/allegro/axion-release-plugin/issues/153","id":177439996,"number":153,"title":"Cannot use version incrementing with markNextVersion Task","user":{"login":"nicholashauschild","id":19525725,"avatar_url":"https://avatars.githubusercontent.com/u/19525725?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholashauschild","html_url":"https://github.com/nicholashauschild","followers_url":"https://api.github.com/users/nicholashauschild/followers","following_url":"https://api.github.com/users/nicholashauschild/following{/other_user}","gists_url":"https://api.github.com/users/nicholashauschild/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholashauschild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholashauschild/subscriptions","organizations_url":"https://api.github.com/users/nicholashauschild/orgs","repos_url":"https://api.github.com/users/nicholashauschild/repos","events_url":"https://api.github.com/users/nicholashauschild/events{/privacy}","received_events_url":"https://api.github.com/users/nicholashauschild/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-16T14:30:53Z","updated_at":"2016-09-16T14:30:53Z","closed_at":null,"body":"I would like to be able to automatically increment the major version via command line, when having a versionIncrementer set to 'incrementMinor' in build.gradle.\r\n\r\nI have tried a couple things to see if it was available already, but neither worked:\r\n\r\n* Trying with markNextVersion, and using the `release.versionIncrementer` flag.  This failed to run.\r\n```\r\n$ ./gradlew markNextVersion -Prelease.versionIncrementer=incrementMajor\r\n:markNextVersion FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':markNextVersion'.\r\n> No next version specified! Use -Prelease.version to set next version.\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\nBUILD FAILED\r\n```\r\n\r\n* Trying with release, and the `release.versionIncrementer` flag.  This ran successfully, but didn't produce the desired result.  I was hoping to have a release of 0.4.0, and the next version be set to 1.0.0 (which would produce 1.0.0-SNAPSHOT on commits that weren't tagged as the release)\r\n```\r\n$ ./gradlew cV\r\n:currentVersion\r\n\r\nProject version: 0.4.0-SNAPSHOT\r\n\r\nBUILD SUCCESSFUL\r\n\r\nTotal time: 7.625 secs\r\n\r\n$ ./gradlew release -Prelease.versionIncrementer=incrementMajor\r\n:verifyRelease\r\nLooking for uncommitted changes..\r\nChecking if branch is ahead of remote..\r\nSkipping snapshot dependencies check\r\n:release\r\nCreating tag: release-1.0.0\r\nPushing all to remote: origin\r\n\r\nBUILD SUCCESSFUL\r\n```\r\n\r\nAny thoughts on how I might accomplish this?"}}
{"actor":{"display_login":"nicholashauschild"}}