{"action":"created","issue":{"url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/112","labels_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/112/comments","events_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/112/events","html_url":"https://github.com/allegro/axion-release-plugin/issues/112","id":117092709,"number":112,"title":"Custom or no version incrementer","user":{"login":"petarov","id":547597,"avatar_url":"https://avatars.githubusercontent.com/u/547597?v=3","gravatar_id":"","url":"https://api.github.com/users/petarov","html_url":"https://github.com/petarov","followers_url":"https://api.github.com/users/petarov/followers","following_url":"https://api.github.com/users/petarov/following{/other_user}","gists_url":"https://api.github.com/users/petarov/gists{/gist_id}","starred_url":"https://api.github.com/users/petarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petarov/subscriptions","organizations_url":"https://api.github.com/users/petarov/orgs","repos_url":"https://api.github.com/users/petarov/repos","events_url":"https://api.github.com/users/petarov/events{/privacy}","received_events_url":"https://api.github.com/users/petarov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-16T10:26:10Z","updated_at":"2015-11-16T11:56:28Z","closed_at":null,"body":"Hi,\r\n\r\nThis is probably a noob question. I'd like to disable the version incrementer and as far as I understand (not really a groovy developer), my only option is to specify a custom incrementer. I do this by specifying:\r\n\r\n```groovy\r\nscmVersion {\r\n    versionCreator 'default'\r\n    versionIncrementer { context, config ->  return context.currentVersion.getNormalVersion() }\r\n}\r\n```\r\n\r\nHowever, I keep getting the following Gradle error:\r\n\r\n    A problem occurred evaluating script.\r\n    > No signature of method: my_project_98xokvbnnu5zglzjorgfjz1b2$_run_closure1$_closure10.doCall() is applicable for argument types: (pl.allegro.tech.build.axion.release.domain.VersionIncrementerContext) values: [pl.allegro.tech.build.axion.release.domain.VersionIncrementerContext(1.0.0, ScmPosition[branch = develop, latestTag = 1.0.0, onTag = false])]\r\n      Possible solutions: doCall(java.lang.Object, java.lang.Object), findAll(), findAll(), isCase(java.lang.Object), isCase(java.lang.Object)\r\n\r\nAm I messing up the parameters or something?"},"comment":{"url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/comments/157007964","html_url":"https://github.com/allegro/axion-release-plugin/issues/112#issuecomment-157007964","issue_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/112","id":157007964,"user":{"login":"petarov","id":547597,"avatar_url":"https://avatars.githubusercontent.com/u/547597?v=3","gravatar_id":"","url":"https://api.github.com/users/petarov","html_url":"https://github.com/petarov","followers_url":"https://api.github.com/users/petarov/followers","following_url":"https://api.github.com/users/petarov/following{/other_user}","gists_url":"https://api.github.com/users/petarov/gists{/gist_id}","starred_url":"https://api.github.com/users/petarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petarov/subscriptions","organizations_url":"https://api.github.com/users/petarov/orgs","repos_url":"https://api.github.com/users/petarov/repos","events_url":"https://api.github.com/users/petarov/events{/privacy}","received_events_url":"https://api.github.com/users/petarov/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T11:56:28Z","updated_at":"2015-11-16T11:56:28Z","body":"Hey, thanks! It worked, although I had to modify it a little bit:\r\n\r\n```groovy\r\nversionIncrementer { context ->  return context.currentVersion }\r\n```\r\n\r\n`currentVersion` seems to be a String.\r\n\r\n    * What went wrong:\r\n    A problem occurred evaluating script.\r\n    > Cannot cast object '1.0.0' with class 'java.lang.String' to class 'com.github.zafarkhaja.semver.Version'\r\n\r\nA fix would be nice. My build definitely won't mind :)\r\n"}}