{"action":"created","comment":{"url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls/comments/190907605","pull_request_review_id":123388797,"id":190907605,"diff_hunk":"@@ -27,6 +18,49 @@ This file should contain:\n - gradle.publish.secret: the secret to publish the plugin to the Gradle Plugins Repository\n \t\t''')\n     }\n+\n+    cli {\n+        using(project)\n+    }\n+\n+    bintray {\n+        def bintrayCredentials = {\n+            boolean isDryRun = cli['dryRun'].or(true).boolean\n+            return isDryRun ?\n+                    ['bintrayRepo': 'n/a', 'bintrayUser': 'n/a', 'bintrayKey': 'n/a'] :\n+                    new File(\"${System.getenv('BINTRAY_PROPERTIES')}\")\n+        }\n+        using(bintrayCredentials()).or(cli)\n+        description = '''This should contain the following properties:\n+                      | - bintrayRepo: name of the repo of the organisation to deploy the artifacts to\n+                      | - bintrayUser: name of the account used to deploy the artifacts\n+                      | - bintrayKey: API key of the account used to deploy the artifacts\n+        '''.stripMargin()\n+    }\n+\n+    publish {\n+        def generateVersion = {\n+            boolean isSnapshot = cli['bintraySnapshot'].or(false).boolean\n+            return isSnapshot ? \"SNAPSHOT-${System.getenv('BUILD_NUMBER') ?: 'LOCAL'}\" : project.version\n+        }\n+        using(['version': \"${generateVersion()}\"]).or(buildProperties.bintray)\n+    }\n+\n+}\n+\n+apply plugin: 'com.gradle.plugin-publish'\n+apply plugin: 'com.novoda.bintray-release'\n+publish {","path":"gradle/publish.gradle","position":56,"original_position":56,"commit_id":"8012ff382366d6b9957dba6135103e5cb2108428","original_commit_id":"8012ff382366d6b9957dba6135103e5cb2108428","user":{"login":"rock3r","id":153802,"avatar_url":"https://avatars2.githubusercontent.com/u/153802?v=4","gravatar_id":"","url":"https://api.github.com/users/rock3r","html_url":"https://github.com/rock3r","followers_url":"https://api.github.com/users/rock3r/followers","following_url":"https://api.github.com/users/rock3r/following{/other_user}","gists_url":"https://api.github.com/users/rock3r/gists{/gist_id}","starred_url":"https://api.github.com/users/rock3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rock3r/subscriptions","organizations_url":"https://api.github.com/users/rock3r/orgs","repos_url":"https://api.github.com/users/rock3r/repos","events_url":"https://api.github.com/users/rock3r/events{/privacy}","received_events_url":"https://api.github.com/users/rock3r/received_events","type":"User","site_admin":false},"body":"Nit: empty line before `publish`","created_at":"2018-05-25T14:15:49Z","updated_at":"2018-05-25T14:17:01Z","html_url":"https://github.com/novoda/gradle-static-analysis-plugin/pull/106#discussion_r190907605","pull_request_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls/106","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls/comments/190907605"},"html":{"href":"https://github.com/novoda/gradle-static-analysis-plugin/pull/106#discussion_r190907605"},"pull_request":{"href":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls/106"}}},"pull_request":{"url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls/106","id":190601435,"html_url":"https://github.com/novoda/gradle-static-analysis-plugin/pull/106","diff_url":"https://github.com/novoda/gradle-static-analysis-plugin/pull/106.diff","patch_url":"https://github.com/novoda/gradle-static-analysis-plugin/pull/106.patch","issue_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/issues/106","number":106,"state":"open","locked":false,"title":"Gradle: Adding support for snapshots","user":{"login":"tomsammons","id":22725697,"avatar_url":"https://avatars3.githubusercontent.com/u/22725697?v=4","gravatar_id":"","url":"https://api.github.com/users/tomsammons","html_url":"https://github.com/tomsammons","followers_url":"https://api.github.com/users/tomsammons/followers","following_url":"https://api.github.com/users/tomsammons/following{/other_user}","gists_url":"https://api.github.com/users/tomsammons/gists{/gist_id}","starred_url":"https://api.github.com/users/tomsammons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomsammons/subscriptions","organizations_url":"https://api.github.com/users/tomsammons/orgs","repos_url":"https://api.github.com/users/tomsammons/repos","events_url":"https://api.github.com/users/tomsammons/events{/privacy}","received_events_url":"https://api.github.com/users/tomsammons/received_events","type":"User","site_admin":false},"body":"This PR adds support for snapshots builds\r\n\r\nThese will be built off the development branch \r\n\r\nWe updated the `gradle-build-properties-plugin` to the latest version\r\n\r\nHere is the link to the Jenkins job: https://ci.novoda.com/job/gradle-static-analysis-plugin-snapshot/\r\n\r\nPaired with @tobiasheine \r\n","created_at":"2018-05-25T14:12:50Z","updated_at":"2018-05-25T14:17:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc4f137d7085831f24912e843f9b2d8fc2e2874c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls/106/commits","review_comments_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls/106/comments","review_comment_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/issues/106/comments","statuses_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/statuses/8012ff382366d6b9957dba6135103e5cb2108428","head":{"label":"novoda:gradle/snapshots","ref":"gradle/snapshots","sha":"8012ff382366d6b9957dba6135103e5cb2108428","user":{"login":"novoda","id":74874,"avatar_url":"https://avatars2.githubusercontent.com/u/74874?v=4","gravatar_id":"","url":"https://api.github.com/users/novoda","html_url":"https://github.com/novoda","followers_url":"https://api.github.com/users/novoda/followers","following_url":"https://api.github.com/users/novoda/following{/other_user}","gists_url":"https://api.github.com/users/novoda/gists{/gist_id}","starred_url":"https://api.github.com/users/novoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novoda/subscriptions","organizations_url":"https://api.github.com/users/novoda/orgs","repos_url":"https://api.github.com/users/novoda/repos","events_url":"https://api.github.com/users/novoda/events{/privacy}","received_events_url":"https://api.github.com/users/novoda/received_events","type":"Organization","site_admin":false},"repo":{"id":73275282,"name":"gradle-static-analysis-plugin","full_name":"novoda/gradle-static-analysis-plugin","owner":{"login":"novoda","id":74874,"avatar_url":"https://avatars2.githubusercontent.com/u/74874?v=4","gravatar_id":"","url":"https://api.github.com/users/novoda","html_url":"https://github.com/novoda","followers_url":"https://api.github.com/users/novoda/followers","following_url":"https://api.github.com/users/novoda/following{/other_user}","gists_url":"https://api.github.com/users/novoda/gists{/gist_id}","starred_url":"https://api.github.com/users/novoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novoda/subscriptions","organizations_url":"https://api.github.com/users/novoda/orgs","repos_url":"https://api.github.com/users/novoda/repos","events_url":"https://api.github.com/users/novoda/events{/privacy}","received_events_url":"https://api.github.com/users/novoda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/novoda/gradle-static-analysis-plugin","description":"Easy setup of static analysis tools for Android and Java projects.","fork":false,"url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin","forks_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/forks","keys_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/teams","hooks_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/hooks","issue_events_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/events","assignees_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/tags","blobs_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/languages","stargazers_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/stargazers","contributors_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/contributors","subscribers_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/subscribers","subscription_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/subscription","commits_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/merges","archive_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/downloads","issues_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/labels{/name}","releases_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/deployments","created_at":"2016-11-09T10:46:59Z","updated_at":"2018-05-12T19:30:09Z","pushed_at":"2018-05-25T14:12:50Z","git_url":"git://github.com/novoda/gradle-static-analysis-plugin.git","ssh_url":"git@github.com:novoda/gradle-static-analysis-plugin.git","clone_url":"https://github.com/novoda/gradle-static-analysis-plugin.git","svn_url":"https://github.com/novoda/gradle-static-analysis-plugin","homepage":"","size":972,"stargazers_count":82,"watchers_count":82,"language":"Groovy","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":6,"open_issues":19,"watchers":82,"default_branch":"master"}},"base":{"label":"novoda:develop","ref":"develop","sha":"386621534f6b46ee168f0f2b5758f0dd3912cb58","user":{"login":"novoda","id":74874,"avatar_url":"https://avatars2.githubusercontent.com/u/74874?v=4","gravatar_id":"","url":"https://api.github.com/users/novoda","html_url":"https://github.com/novoda","followers_url":"https://api.github.com/users/novoda/followers","following_url":"https://api.github.com/users/novoda/following{/other_user}","gists_url":"https://api.github.com/users/novoda/gists{/gist_id}","starred_url":"https://api.github.com/users/novoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novoda/subscriptions","organizations_url":"https://api.github.com/users/novoda/orgs","repos_url":"https://api.github.com/users/novoda/repos","events_url":"https://api.github.com/users/novoda/events{/privacy}","received_events_url":"https://api.github.com/users/novoda/received_events","type":"Organization","site_admin":false},"repo":{"id":73275282,"name":"gradle-static-analysis-plugin","full_name":"novoda/gradle-static-analysis-plugin","owner":{"login":"novoda","id":74874,"avatar_url":"https://avatars2.githubusercontent.com/u/74874?v=4","gravatar_id":"","url":"https://api.github.com/users/novoda","html_url":"https://github.com/novoda","followers_url":"https://api.github.com/users/novoda/followers","following_url":"https://api.github.com/users/novoda/following{/other_user}","gists_url":"https://api.github.com/users/novoda/gists{/gist_id}","starred_url":"https://api.github.com/users/novoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novoda/subscriptions","organizations_url":"https://api.github.com/users/novoda/orgs","repos_url":"https://api.github.com/users/novoda/repos","events_url":"https://api.github.com/users/novoda/events{/privacy}","received_events_url":"https://api.github.com/users/novoda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/novoda/gradle-static-analysis-plugin","description":"Easy setup of static analysis tools for Android and Java projects.","fork":false,"url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin","forks_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/forks","keys_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/teams","hooks_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/hooks","issue_events_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/events","assignees_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/tags","blobs_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/languages","stargazers_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/stargazers","contributors_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/contributors","subscribers_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/subscribers","subscription_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/subscription","commits_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/merges","archive_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/downloads","issues_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/labels{/name}","releases_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/deployments","created_at":"2016-11-09T10:46:59Z","updated_at":"2018-05-12T19:30:09Z","pushed_at":"2018-05-25T14:12:50Z","git_url":"git://github.com/novoda/gradle-static-analysis-plugin.git","ssh_url":"git@github.com:novoda/gradle-static-analysis-plugin.git","clone_url":"https://github.com/novoda/gradle-static-analysis-plugin.git","svn_url":"https://github.com/novoda/gradle-static-analysis-plugin","homepage":"","size":972,"stargazers_count":82,"watchers_count":82,"language":"Groovy","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":6,"open_issues":19,"watchers":82,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls/106"},"html":{"href":"https://github.com/novoda/gradle-static-analysis-plugin/pull/106"},"issue":{"href":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/issues/106"},"comments":{"href":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/issues/106/comments"},"review_comments":{"href":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls/106/comments"},"review_comment":{"href":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/pulls/106/commits"},"statuses":{"href":"https://api.github.com/repos/novoda/gradle-static-analysis-plugin/statuses/8012ff382366d6b9957dba6135103e5cb2108428"}},"author_association":"NONE"}}
{"actor":{"display_login":"rock3r"}}