{"action":"created","comment":{"url":"https://api.github.com/repos/osiam/shell/pulls/comments/37610631","id":37610631,"diff_hunk":"@@ -38,3 +40,31 @@ dependencies {\n }\n \n defaultTasks 'shadowJar'\n+\n+publishing {\n+    publications {\n+        MyPublication(MavenPublication) {\n+            from components.java\n+            groupId group\n+            artifactId 'shell'\n+            version version\n+        }\n+    }\n+}\n+\n+bintray {\n+    user = System.getenv('BINTRAY_USER')\n+    key = System.getenv('BINTRAY_KEY')\n+    publications = ['MyPublication']\n+    dryRun = false\n+    publish = false\n+    pkg {\n+        repo = 'maven'\n+        name = 'osiam-shell'\n+        licenses = ['MIT']\n+        vcsUrl = 'https://github.com/osiam/shell.git'\n+        version {\n+            name = version","path":"build.gradle","position":51,"original_position":51,"commit_id":"237a4264269e1236efa0fee48e5bdbf015e3c19a","original_commit_id":"237a4264269e1236efa0fee48e5bdbf015e3c19a","user":{"login":"sputnik27","id":2292245,"avatar_url":"https://avatars.githubusercontent.com/u/2292245?v=3","gravatar_id":"","url":"https://api.github.com/users/sputnik27","html_url":"https://github.com/sputnik27","followers_url":"https://api.github.com/users/sputnik27/followers","following_url":"https://api.github.com/users/sputnik27/following{/other_user}","gists_url":"https://api.github.com/users/sputnik27/gists{/gist_id}","starred_url":"https://api.github.com/users/sputnik27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sputnik27/subscriptions","organizations_url":"https://api.github.com/users/sputnik27/orgs","repos_url":"https://api.github.com/users/sputnik27/repos","events_url":"https://api.github.com/users/sputnik27/events{/privacy}","received_events_url":"https://api.github.com/users/sputnik27/received_events","type":"User","site_admin":false},"body":"Sounds odd, doesn't it? If you have a look at [bintray's example](https://github.com/bintray/bintray-examples/blob/master/gradle-bintray-plugin-examples/publications-example/build.gradle#L64), they hardcode a version string there. \r\n\r\nIt is the \"name\" of the version, that is at least my understanding.\r\n\r\nI am not sure why they duplicate the version information so often, that is why I chose to re-use the existing variables. But it might well be that there is a reason that I did miss.","created_at":"2015-08-21T07:02:04Z","updated_at":"2015-08-21T07:02:04Z","html_url":"https://github.com/osiam/shell/pull/16#discussion_r37610631","pull_request_url":"https://api.github.com/repos/osiam/shell/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/osiam/shell/pulls/comments/37610631"},"html":{"href":"https://github.com/osiam/shell/pull/16#discussion_r37610631"},"pull_request":{"href":"https://api.github.com/repos/osiam/shell/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/osiam/shell/pulls/16","id":42932140,"html_url":"https://github.com/osiam/shell/pull/16","diff_url":"https://github.com/osiam/shell/pull/16.diff","patch_url":"https://github.com/osiam/shell/pull/16.patch","issue_url":"https://api.github.com/repos/osiam/shell/issues/16","number":16,"state":"open","locked":false,"title":"WIP: Integrate Bintray for Artifact Publishing","user":{"login":"sputnik27","id":2292245,"avatar_url":"https://avatars.githubusercontent.com/u/2292245?v=3","gravatar_id":"","url":"https://api.github.com/users/sputnik27","html_url":"https://github.com/sputnik27","followers_url":"https://api.github.com/users/sputnik27/followers","following_url":"https://api.github.com/users/sputnik27/following{/other_user}","gists_url":"https://api.github.com/users/sputnik27/gists{/gist_id}","starred_url":"https://api.github.com/users/sputnik27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sputnik27/subscriptions","organizations_url":"https://api.github.com/users/sputnik27/orgs","repos_url":"https://api.github.com/users/sputnik27/repos","events_url":"https://api.github.com/users/sputnik27/events{/privacy}","received_events_url":"https://api.github.com/users/sputnik27/received_events","type":"User","site_admin":false},"body":"Related to osiam/osiam#30\r\n\r\nThis commit shows the basic integration for artifact publishing on\r\nbintray. It is meant as an request for comments and should advance the\r\ndiscussion about future artifact publishing in OSIAM.","created_at":"2015-08-20T13:58:12Z","updated_at":"2015-08-21T07:02:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58eb34cebe10749d587b1411129c04e5b853e0b6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/osiam/shell/pulls/16/commits","review_comments_url":"https://api.github.com/repos/osiam/shell/pulls/16/comments","review_comment_url":"https://api.github.com/repos/osiam/shell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/osiam/shell/issues/16/comments","statuses_url":"https://api.github.com/repos/osiam/shell/statuses/237a4264269e1236efa0fee48e5bdbf015e3c19a","head":{"label":"sputnik27:bintray","ref":"bintray","sha":"237a4264269e1236efa0fee48e5bdbf015e3c19a","user":{"login":"sputnik27","id":2292245,"avatar_url":"https://avatars.githubusercontent.com/u/2292245?v=3","gravatar_id":"","url":"https://api.github.com/users/sputnik27","html_url":"https://github.com/sputnik27","followers_url":"https://api.github.com/users/sputnik27/followers","following_url":"https://api.github.com/users/sputnik27/following{/other_user}","gists_url":"https://api.github.com/users/sputnik27/gists{/gist_id}","starred_url":"https://api.github.com/users/sputnik27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sputnik27/subscriptions","organizations_url":"https://api.github.com/users/sputnik27/orgs","repos_url":"https://api.github.com/users/sputnik27/repos","events_url":"https://api.github.com/users/sputnik27/events{/privacy}","received_events_url":"https://api.github.com/users/sputnik27/received_events","type":"User","site_admin":false},"repo":{"id":40961895,"name":"shell","full_name":"sputnik27/shell","owner":{"login":"sputnik27","id":2292245,"avatar_url":"https://avatars.githubusercontent.com/u/2292245?v=3","gravatar_id":"","url":"https://api.github.com/users/sputnik27","html_url":"https://github.com/sputnik27","followers_url":"https://api.github.com/users/sputnik27/followers","following_url":"https://api.github.com/users/sputnik27/following{/other_user}","gists_url":"https://api.github.com/users/sputnik27/gists{/gist_id}","starred_url":"https://api.github.com/users/sputnik27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sputnik27/subscriptions","organizations_url":"https://api.github.com/users/sputnik27/orgs","repos_url":"https://api.github.com/users/sputnik27/repos","events_url":"https://api.github.com/users/sputnik27/events{/privacy}","received_events_url":"https://api.github.com/users/sputnik27/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sputnik27/shell","description":"A Shell for Osiam","fork":true,"url":"https://api.github.com/repos/sputnik27/shell","forks_url":"https://api.github.com/repos/sputnik27/shell/forks","keys_url":"https://api.github.com/repos/sputnik27/shell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sputnik27/shell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sputnik27/shell/teams","hooks_url":"https://api.github.com/repos/sputnik27/shell/hooks","issue_events_url":"https://api.github.com/repos/sputnik27/shell/issues/events{/number}","events_url":"https://api.github.com/repos/sputnik27/shell/events","assignees_url":"https://api.github.com/repos/sputnik27/shell/assignees{/user}","branches_url":"https://api.github.com/repos/sputnik27/shell/branches{/branch}","tags_url":"https://api.github.com/repos/sputnik27/shell/tags","blobs_url":"https://api.github.com/repos/sputnik27/shell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sputnik27/shell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sputnik27/shell/git/refs{/sha}","trees_url":"https://api.github.com/repos/sputnik27/shell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sputnik27/shell/statuses/{sha}","languages_url":"https://api.github.com/repos/sputnik27/shell/languages","stargazers_url":"https://api.github.com/repos/sputnik27/shell/stargazers","contributors_url":"https://api.github.com/repos/sputnik27/shell/contributors","subscribers_url":"https://api.github.com/repos/sputnik27/shell/subscribers","subscription_url":"https://api.github.com/repos/sputnik27/shell/subscription","commits_url":"https://api.github.com/repos/sputnik27/shell/commits{/sha}","git_commits_url":"https://api.github.com/repos/sputnik27/shell/git/commits{/sha}","comments_url":"https://api.github.com/repos/sputnik27/shell/comments{/number}","issue_comment_url":"https://api.github.com/repos/sputnik27/shell/issues/comments{/number}","contents_url":"https://api.github.com/repos/sputnik27/shell/contents/{+path}","compare_url":"https://api.github.com/repos/sputnik27/shell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sputnik27/shell/merges","archive_url":"https://api.github.com/repos/sputnik27/shell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sputnik27/shell/downloads","issues_url":"https://api.github.com/repos/sputnik27/shell/issues{/number}","pulls_url":"https://api.github.com/repos/sputnik27/shell/pulls{/number}","milestones_url":"https://api.github.com/repos/sputnik27/shell/milestones{/number}","notifications_url":"https://api.github.com/repos/sputnik27/shell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sputnik27/shell/labels{/name}","releases_url":"https://api.github.com/repos/sputnik27/shell/releases{/id}","created_at":"2015-08-18T09:05:33Z","updated_at":"2015-08-18T09:05:33Z","pushed_at":"2015-08-20T14:05:55Z","git_url":"git://github.com/sputnik27/shell.git","ssh_url":"git@github.com:sputnik27/shell.git","clone_url":"https://github.com/sputnik27/shell.git","svn_url":"https://github.com/sputnik27/shell","homepage":null,"size":253,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"osiam:master","ref":"master","sha":"8bc6d4684a9b11574457b6150c52a80a02e0e133","user":{"login":"osiam","id":1918807,"avatar_url":"https://avatars.githubusercontent.com/u/1918807?v=3","gravatar_id":"","url":"https://api.github.com/users/osiam","html_url":"https://github.com/osiam","followers_url":"https://api.github.com/users/osiam/followers","following_url":"https://api.github.com/users/osiam/following{/other_user}","gists_url":"https://api.github.com/users/osiam/gists{/gist_id}","starred_url":"https://api.github.com/users/osiam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osiam/subscriptions","organizations_url":"https://api.github.com/users/osiam/orgs","repos_url":"https://api.github.com/users/osiam/repos","events_url":"https://api.github.com/users/osiam/events{/privacy}","received_events_url":"https://api.github.com/users/osiam/received_events","type":"Organization","site_admin":false},"repo":{"id":24369636,"name":"shell","full_name":"osiam/shell","owner":{"login":"osiam","id":1918807,"avatar_url":"https://avatars.githubusercontent.com/u/1918807?v=3","gravatar_id":"","url":"https://api.github.com/users/osiam","html_url":"https://github.com/osiam","followers_url":"https://api.github.com/users/osiam/followers","following_url":"https://api.github.com/users/osiam/following{/other_user}","gists_url":"https://api.github.com/users/osiam/gists{/gist_id}","starred_url":"https://api.github.com/users/osiam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osiam/subscriptions","organizations_url":"https://api.github.com/users/osiam/orgs","repos_url":"https://api.github.com/users/osiam/repos","events_url":"https://api.github.com/users/osiam/events{/privacy}","received_events_url":"https://api.github.com/users/osiam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osiam/shell","description":"A Shell for Osiam","fork":true,"url":"https://api.github.com/repos/osiam/shell","forks_url":"https://api.github.com/repos/osiam/shell/forks","keys_url":"https://api.github.com/repos/osiam/shell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osiam/shell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osiam/shell/teams","hooks_url":"https://api.github.com/repos/osiam/shell/hooks","issue_events_url":"https://api.github.com/repos/osiam/shell/issues/events{/number}","events_url":"https://api.github.com/repos/osiam/shell/events","assignees_url":"https://api.github.com/repos/osiam/shell/assignees{/user}","branches_url":"https://api.github.com/repos/osiam/shell/branches{/branch}","tags_url":"https://api.github.com/repos/osiam/shell/tags","blobs_url":"https://api.github.com/repos/osiam/shell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osiam/shell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osiam/shell/git/refs{/sha}","trees_url":"https://api.github.com/repos/osiam/shell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osiam/shell/statuses/{sha}","languages_url":"https://api.github.com/repos/osiam/shell/languages","stargazers_url":"https://api.github.com/repos/osiam/shell/stargazers","contributors_url":"https://api.github.com/repos/osiam/shell/contributors","subscribers_url":"https://api.github.com/repos/osiam/shell/subscribers","subscription_url":"https://api.github.com/repos/osiam/shell/subscription","commits_url":"https://api.github.com/repos/osiam/shell/commits{/sha}","git_commits_url":"https://api.github.com/repos/osiam/shell/git/commits{/sha}","comments_url":"https://api.github.com/repos/osiam/shell/comments{/number}","issue_comment_url":"https://api.github.com/repos/osiam/shell/issues/comments{/number}","contents_url":"https://api.github.com/repos/osiam/shell/contents/{+path}","compare_url":"https://api.github.com/repos/osiam/shell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osiam/shell/merges","archive_url":"https://api.github.com/repos/osiam/shell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osiam/shell/downloads","issues_url":"https://api.github.com/repos/osiam/shell/issues{/number}","pulls_url":"https://api.github.com/repos/osiam/shell/pulls{/number}","milestones_url":"https://api.github.com/repos/osiam/shell/milestones{/number}","notifications_url":"https://api.github.com/repos/osiam/shell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osiam/shell/labels{/name}","releases_url":"https://api.github.com/repos/osiam/shell/releases{/id}","created_at":"2014-09-23T12:03:26Z","updated_at":"2015-08-20T12:13:28Z","pushed_at":"2015-08-20T14:05:56Z","git_url":"git://github.com/osiam/shell.git","ssh_url":"git@github.com:osiam/shell.git","clone_url":"https://github.com/osiam/shell.git","svn_url":"https://github.com/osiam/shell","homepage":null,"size":293,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/osiam/shell/pulls/16"},"html":{"href":"https://github.com/osiam/shell/pull/16"},"issue":{"href":"https://api.github.com/repos/osiam/shell/issues/16"},"comments":{"href":"https://api.github.com/repos/osiam/shell/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/osiam/shell/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/osiam/shell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/osiam/shell/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/osiam/shell/statuses/237a4264269e1236efa0fee48e5bdbf015e3c19a"}}}}