{"action":"opened","issue":{"url":"https://api.github.com/repos/researchgate/gradle-release/issues/198","repository_url":"https://api.github.com/repos/researchgate/gradle-release","labels_url":"https://api.github.com/repos/researchgate/gradle-release/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/researchgate/gradle-release/issues/198/comments","events_url":"https://api.github.com/repos/researchgate/gradle-release/issues/198/events","html_url":"https://github.com/researchgate/gradle-release/issues/198","id":183906183,"number":198,"title":"Un-snapshot and update project version and other version properties independently","user":{"login":"kernanj","id":5603562,"avatar_url":"https://avatars.githubusercontent.com/u/5603562?v=3","gravatar_id":"","url":"https://api.github.com/users/kernanj","html_url":"https://github.com/kernanj","followers_url":"https://api.github.com/users/kernanj/followers","following_url":"https://api.github.com/users/kernanj/following{/other_user}","gists_url":"https://api.github.com/users/kernanj/gists{/gist_id}","starred_url":"https://api.github.com/users/kernanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kernanj/subscriptions","organizations_url":"https://api.github.com/users/kernanj/orgs","repos_url":"https://api.github.com/users/kernanj/repos","events_url":"https://api.github.com/users/kernanj/events{/privacy}","received_events_url":"https://api.github.com/users/kernanj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-19T09:09:41Z","updated_at":"2016-10-19T09:09:41Z","closed_at":null,"body":"\r\nFrom what I understand, the versionProperties property in ReleaseExtension is used for updating extra properties but those properties are always given a value of project.version. \r\n\r\nWould it be more suitable to update properties by getting their next version independently?\r\n\r\nConsider the following example:\r\n\r\n#### gradle.properties\r\n```java\r\nversion=1.0.0.1-SNAPSHOT\r\ncomponentVersion1=2.1.0.1-SNAPSHOT\r\ncomponentVersion2=7.1.3.1-SNAPSHOT\r\n```\r\n\r\n```groovy\r\nrelease {\r\n    versionProperties = ['componentVersion1','componentVersion2']\r\n}\r\n```\r\n\r\nFrom looking at the code, it looks like all properties in  versionProperties will get updated to project.version\r\n\r\nFor the unsnapshot, gradle.properties now becomes\r\n#### gradle.properties\r\n```java\r\nversion=1.0.0.1\r\ncomponentVersion1=1.0.0.1\r\ncomponentVersion2=1.0.0.1\r\n```\r\n\r\nWould it be more suitable to just unsnapshot these versionProperties so you're left with\r\n#### gradle.properties\r\n```java\r\nversion=1.0.0.1\r\ncomponentVersion1=2.1.0.1\r\ncomponentVersion2=7.1.3.1\r\n```\r\n\r\nThe updateVersion could also be changed to get the next version of each property rather than just update project.version and setting that version on all other properties.\r\n\r\nThe result of the updateVersion would then be this:\r\n#### gradle.properties\r\n```java\r\nversion=1.0.0.2-SNAPSHOT\r\ncomponentVersion1=2.1.0.2-SNAPSHOT\r\ncomponentVersion2=7.1.3.2-SNAPSHOT\r\n```\r\n\r\nI'm happy to help out with this if you think it's a valid enhancement.\r\n\r\n"}}
{"actor":{"display_login":"kernanj"}}