{"action":"created","issue":{"url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/247","repository_url":"https://api.github.com/repos/allegro/axion-release-plugin","labels_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/247/comments","events_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/247/events","html_url":"https://github.com/allegro/axion-release-plugin/issues/247","id":332336956,"node_id":"MDU6SXNzdWUzMzIzMzY5NTY=","number":247,"title":"Current version resolution is not respecting version incremented","user":{"login":"piotrchowaniec","id":13479108,"node_id":"MDQ6VXNlcjEzNDc5MTA4","avatar_url":"https://avatars3.githubusercontent.com/u/13479108?v=4","gravatar_id":"","url":"https://api.github.com/users/piotrchowaniec","html_url":"https://github.com/piotrchowaniec","followers_url":"https://api.github.com/users/piotrchowaniec/followers","following_url":"https://api.github.com/users/piotrchowaniec/following{/other_user}","gists_url":"https://api.github.com/users/piotrchowaniec/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrchowaniec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrchowaniec/subscriptions","organizations_url":"https://api.github.com/users/piotrchowaniec/orgs","repos_url":"https://api.github.com/users/piotrchowaniec/repos","events_url":"https://api.github.com/users/piotrchowaniec/events{/privacy}","received_events_url":"https://api.github.com/users/piotrchowaniec/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-14T10:09:18Z","updated_at":"2018-06-18T08:38:06Z","closed_at":"2018-06-18T08:38:06Z","author_association":"CONTRIBUTOR","body":"I'm not sure if this is a bug, so please close in case it doesn't.\r\nWhen I have version incrementer set to increment minor part of the version then calling `./gradlew currentVersion` gives different result than version created using `./gradlew release`.\r\nI've created a test for this case, so you can check the issue.\r\nPlease take a look at my [fork](https://github.com/piotrchowaniec/axion-release-plugin/blob/respectVersionIncrementer/src/test/groovy/pl/allegro/tech/build/axion/release/domain/VersionResolverTest.groovy) at test `VersionResolverTest#current version should respect version incrementer`"},"comment":{"url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/comments/397982101","html_url":"https://github.com/allegro/axion-release-plugin/issues/247#issuecomment-397982101","issue_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/247","id":397982101,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Nzk4MjEwMQ==","user":{"login":"piotrchowaniec","id":13479108,"node_id":"MDQ6VXNlcjEzNDc5MTA4","avatar_url":"https://avatars3.githubusercontent.com/u/13479108?v=4","gravatar_id":"","url":"https://api.github.com/users/piotrchowaniec","html_url":"https://github.com/piotrchowaniec","followers_url":"https://api.github.com/users/piotrchowaniec/followers","following_url":"https://api.github.com/users/piotrchowaniec/following{/other_user}","gists_url":"https://api.github.com/users/piotrchowaniec/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrchowaniec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrchowaniec/subscriptions","organizations_url":"https://api.github.com/users/piotrchowaniec/orgs","repos_url":"https://api.github.com/users/piotrchowaniec/repos","events_url":"https://api.github.com/users/piotrchowaniec/events{/privacy}","received_events_url":"https://api.github.com/users/piotrchowaniec/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T08:38:06Z","updated_at":"2018-06-18T08:38:06Z","author_association":"CONTRIBUTOR","body":"Test and implementation is on the `respectVersionIncrementer` branch. [file](https://github.com/piotrchowaniec/axion-release-plugin/blob/respectVersionIncrementer/src/test/groovy/pl/allegro/tech/build/axion/release/domain/properties/VersionPropertiesBuilder.groovy). \r\n\r\nIn the meantime I've found an error in my configuration (`project.version = scmVersion.version` before `scmVersion` in the build.gradle). So after fixing my configuration I cannot provide any real example of my issue, but still don't know why my test is not working. \r\n\r\nMy case was: when I was configuring the plugin to increase minor part of the version calling `gradle currentVersion` returned version with patch number increased. But in the same time doing `gradle release` proper version was created (with minor part increased). \r\n\r\nI'm closing this issue as it was caused by wrong configuration.\r\nAnyway thanks for help. "}}
{"actor":{"display_login":"piotrchowaniec"}}