{"action":"created","comment":{"url":"https://api.github.com/repos/gradle/gradle/pulls/comments/59663679","id":59663679,"diff_hunk":"@@ -123,6 +123,23 @@\n     MavenArtifactRepository jcenter();\n \n     /**\n+     * Adds a repository which looks in the Gradle's official repository for dependencies. The URL used to access this repository is\n+     * {@value org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler#GRADLE_REPO_URL}. The name of the repository is\n+     * {@value org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler#DEFAULT_GRADLE_REPO_NAME}.\n+     *\n+     * <p>Examples:\n+     * <pre autoTested=\"\">\n+     * repositories {\n+     *     gradleRepo()","path":"subprojects/core/src/main/groovy/org/gradle/api/artifacts/dsl/RepositoryHandler.java","position":11,"original_position":11,"commit_id":"96c502971f3ea327c793658730328b6aff440e6b","original_commit_id":"96c502971f3ea327c793658730328b6aff440e6b","user":{"login":"jaredsburrows","id":1739848,"avatar_url":"https://avatars.githubusercontent.com/u/1739848?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredsburrows","html_url":"https://github.com/jaredsburrows","followers_url":"https://api.github.com/users/jaredsburrows/followers","following_url":"https://api.github.com/users/jaredsburrows/following{/other_user}","gists_url":"https://api.github.com/users/jaredsburrows/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredsburrows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredsburrows/subscriptions","organizations_url":"https://api.github.com/users/jaredsburrows/orgs","repos_url":"https://api.github.com/users/jaredsburrows/repos","events_url":"https://api.github.com/users/jaredsburrows/events{/privacy}","received_events_url":"https://api.github.com/users/jaredsburrows/received_events","type":"User","site_admin":false},"body":"Sounds good. I can make it `pluginRepo` instead of `gradleRepo`.\r\n\r\nSo it would look like:\r\n\r\n```\r\nrepositories {\r\n   pluginRepo()\r\n}\r\n```","created_at":"2016-04-14T05:05:14Z","updated_at":"2016-04-14T05:05:14Z","html_url":"https://github.com/gradle/gradle/pull/613#discussion_r59663679","pull_request_url":"https://api.github.com/repos/gradle/gradle/pulls/613","_links":{"self":{"href":"https://api.github.com/repos/gradle/gradle/pulls/comments/59663679"},"html":{"href":"https://github.com/gradle/gradle/pull/613#discussion_r59663679"},"pull_request":{"href":"https://api.github.com/repos/gradle/gradle/pulls/613"}}},"pull_request":{"url":"https://api.github.com/repos/gradle/gradle/pulls/613","id":66422490,"html_url":"https://github.com/gradle/gradle/pull/613","diff_url":"https://github.com/gradle/gradle/pull/613.diff","patch_url":"https://github.com/gradle/gradle/pull/613.patch","issue_url":"https://api.github.com/repos/gradle/gradle/issues/613","number":613,"state":"open","locked":false,"title":"Add handler for gradle official repo","user":{"login":"jaredsburrows","id":1739848,"avatar_url":"https://avatars.githubusercontent.com/u/1739848?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredsburrows","html_url":"https://github.com/jaredsburrows","followers_url":"https://api.github.com/users/jaredsburrows/followers","following_url":"https://api.github.com/users/jaredsburrows/following{/other_user}","gists_url":"https://api.github.com/users/jaredsburrows/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredsburrows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredsburrows/subscriptions","organizations_url":"https://api.github.com/users/jaredsburrows/orgs","repos_url":"https://api.github.com/users/jaredsburrows/repos","events_url":"https://api.github.com/users/jaredsburrows/events{/privacy}","received_events_url":"https://api.github.com/users/jaredsburrows/received_events","type":"User","site_admin":false},"body":"Issue: https://discuss.gradle.org/t/add-defaultrepositoryhandler-for-gradle-plugins-https-plugins-gradle-org-m2/16270/1\r\n\r\n@eljobe @breskeby \r\n**Instead of:** \r\n```\r\nrepositories {\r\n   maven { url 'https://plugins.gradle.org/m2/' }\r\n}\r\n```\r\n\r\n**You can now easily do the following:**\r\n```\r\nrepositories {\r\n   gradleRepo()\r\n}\r\n```","created_at":"2016-04-14T02:58:35Z","updated_at":"2016-04-14T05:05:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf1ea851a74761032e21ebb3a54230d9209b675e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gradle/gradle/pulls/613/commits","review_comments_url":"https://api.github.com/repos/gradle/gradle/pulls/613/comments","review_comment_url":"https://api.github.com/repos/gradle/gradle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gradle/gradle/issues/613/comments","statuses_url":"https://api.github.com/repos/gradle/gradle/statuses/96c502971f3ea327c793658730328b6aff440e6b","head":{"label":"jaredsburrows:add-official-gradle-repo","ref":"add-official-gradle-repo","sha":"96c502971f3ea327c793658730328b6aff440e6b","user":{"login":"jaredsburrows","id":1739848,"avatar_url":"https://avatars.githubusercontent.com/u/1739848?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredsburrows","html_url":"https://github.com/jaredsburrows","followers_url":"https://api.github.com/users/jaredsburrows/followers","following_url":"https://api.github.com/users/jaredsburrows/following{/other_user}","gists_url":"https://api.github.com/users/jaredsburrows/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredsburrows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredsburrows/subscriptions","organizations_url":"https://api.github.com/users/jaredsburrows/orgs","repos_url":"https://api.github.com/users/jaredsburrows/repos","events_url":"https://api.github.com/users/jaredsburrows/events{/privacy}","received_events_url":"https://api.github.com/users/jaredsburrows/received_events","type":"User","site_admin":false},"repo":{"id":55880283,"name":"gradle","full_name":"jaredsburrows/gradle","owner":{"login":"jaredsburrows","id":1739848,"avatar_url":"https://avatars.githubusercontent.com/u/1739848?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredsburrows","html_url":"https://github.com/jaredsburrows","followers_url":"https://api.github.com/users/jaredsburrows/followers","following_url":"https://api.github.com/users/jaredsburrows/following{/other_user}","gists_url":"https://api.github.com/users/jaredsburrows/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredsburrows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredsburrows/subscriptions","organizations_url":"https://api.github.com/users/jaredsburrows/orgs","repos_url":"https://api.github.com/users/jaredsburrows/repos","events_url":"https://api.github.com/users/jaredsburrows/events{/privacy}","received_events_url":"https://api.github.com/users/jaredsburrows/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jaredsburrows/gradle","description":"A powerful build system for the JVM","fork":true,"url":"https://api.github.com/repos/jaredsburrows/gradle","forks_url":"https://api.github.com/repos/jaredsburrows/gradle/forks","keys_url":"https://api.github.com/repos/jaredsburrows/gradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jaredsburrows/gradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jaredsburrows/gradle/teams","hooks_url":"https://api.github.com/repos/jaredsburrows/gradle/hooks","issue_events_url":"https://api.github.com/repos/jaredsburrows/gradle/issues/events{/number}","events_url":"https://api.github.com/repos/jaredsburrows/gradle/events","assignees_url":"https://api.github.com/repos/jaredsburrows/gradle/assignees{/user}","branches_url":"https://api.github.com/repos/jaredsburrows/gradle/branches{/branch}","tags_url":"https://api.github.com/repos/jaredsburrows/gradle/tags","blobs_url":"https://api.github.com/repos/jaredsburrows/gradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jaredsburrows/gradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jaredsburrows/gradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/jaredsburrows/gradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jaredsburrows/gradle/statuses/{sha}","languages_url":"https://api.github.com/repos/jaredsburrows/gradle/languages","stargazers_url":"https://api.github.com/repos/jaredsburrows/gradle/stargazers","contributors_url":"https://api.github.com/repos/jaredsburrows/gradle/contributors","subscribers_url":"https://api.github.com/repos/jaredsburrows/gradle/subscribers","subscription_url":"https://api.github.com/repos/jaredsburrows/gradle/subscription","commits_url":"https://api.github.com/repos/jaredsburrows/gradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/jaredsburrows/gradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/jaredsburrows/gradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/jaredsburrows/gradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/jaredsburrows/gradle/contents/{+path}","compare_url":"https://api.github.com/repos/jaredsburrows/gradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jaredsburrows/gradle/merges","archive_url":"https://api.github.com/repos/jaredsburrows/gradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jaredsburrows/gradle/downloads","issues_url":"https://api.github.com/repos/jaredsburrows/gradle/issues{/number}","pulls_url":"https://api.github.com/repos/jaredsburrows/gradle/pulls{/number}","milestones_url":"https://api.github.com/repos/jaredsburrows/gradle/milestones{/number}","notifications_url":"https://api.github.com/repos/jaredsburrows/gradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jaredsburrows/gradle/labels{/name}","releases_url":"https://api.github.com/repos/jaredsburrows/gradle/releases{/id}","deployments_url":"https://api.github.com/repos/jaredsburrows/gradle/deployments","created_at":"2016-04-10T04:13:19Z","updated_at":"2016-04-10T04:13:57Z","pushed_at":"2016-04-14T02:53:56Z","git_url":"git://github.com/jaredsburrows/gradle.git","ssh_url":"git@github.com:jaredsburrows/gradle.git","clone_url":"https://github.com/jaredsburrows/gradle.git","svn_url":"https://github.com/jaredsburrows/gradle","homepage":"gradle.org","size":130702,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":true,"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":"gradle:master","ref":"master","sha":"5908be3312ce1020f5a31d04fb767b39cc0fa2ac","user":{"login":"gradle","id":124156,"avatar_url":"https://avatars.githubusercontent.com/u/124156?v=3","gravatar_id":"","url":"https://api.github.com/users/gradle","html_url":"https://github.com/gradle","followers_url":"https://api.github.com/users/gradle/followers","following_url":"https://api.github.com/users/gradle/following{/other_user}","gists_url":"https://api.github.com/users/gradle/gists{/gist_id}","starred_url":"https://api.github.com/users/gradle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gradle/subscriptions","organizations_url":"https://api.github.com/users/gradle/orgs","repos_url":"https://api.github.com/users/gradle/repos","events_url":"https://api.github.com/users/gradle/events{/privacy}","received_events_url":"https://api.github.com/users/gradle/received_events","type":"Organization","site_admin":false},"repo":{"id":302322,"name":"gradle","full_name":"gradle/gradle","owner":{"login":"gradle","id":124156,"avatar_url":"https://avatars.githubusercontent.com/u/124156?v=3","gravatar_id":"","url":"https://api.github.com/users/gradle","html_url":"https://github.com/gradle","followers_url":"https://api.github.com/users/gradle/followers","following_url":"https://api.github.com/users/gradle/following{/other_user}","gists_url":"https://api.github.com/users/gradle/gists{/gist_id}","starred_url":"https://api.github.com/users/gradle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gradle/subscriptions","organizations_url":"https://api.github.com/users/gradle/orgs","repos_url":"https://api.github.com/users/gradle/repos","events_url":"https://api.github.com/users/gradle/events{/privacy}","received_events_url":"https://api.github.com/users/gradle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gradle/gradle","description":"A powerful build system for the JVM","fork":false,"url":"https://api.github.com/repos/gradle/gradle","forks_url":"https://api.github.com/repos/gradle/gradle/forks","keys_url":"https://api.github.com/repos/gradle/gradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gradle/gradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gradle/gradle/teams","hooks_url":"https://api.github.com/repos/gradle/gradle/hooks","issue_events_url":"https://api.github.com/repos/gradle/gradle/issues/events{/number}","events_url":"https://api.github.com/repos/gradle/gradle/events","assignees_url":"https://api.github.com/repos/gradle/gradle/assignees{/user}","branches_url":"https://api.github.com/repos/gradle/gradle/branches{/branch}","tags_url":"https://api.github.com/repos/gradle/gradle/tags","blobs_url":"https://api.github.com/repos/gradle/gradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gradle/gradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gradle/gradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/gradle/gradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gradle/gradle/statuses/{sha}","languages_url":"https://api.github.com/repos/gradle/gradle/languages","stargazers_url":"https://api.github.com/repos/gradle/gradle/stargazers","contributors_url":"https://api.github.com/repos/gradle/gradle/contributors","subscribers_url":"https://api.github.com/repos/gradle/gradle/subscribers","subscription_url":"https://api.github.com/repos/gradle/gradle/subscription","commits_url":"https://api.github.com/repos/gradle/gradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/gradle/gradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/gradle/gradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/gradle/gradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/gradle/gradle/contents/{+path}","compare_url":"https://api.github.com/repos/gradle/gradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gradle/gradle/merges","archive_url":"https://api.github.com/repos/gradle/gradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gradle/gradle/downloads","issues_url":"https://api.github.com/repos/gradle/gradle/issues{/number}","pulls_url":"https://api.github.com/repos/gradle/gradle/pulls{/number}","milestones_url":"https://api.github.com/repos/gradle/gradle/milestones{/number}","notifications_url":"https://api.github.com/repos/gradle/gradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gradle/gradle/labels{/name}","releases_url":"https://api.github.com/repos/gradle/gradle/releases{/id}","deployments_url":"https://api.github.com/repos/gradle/gradle/deployments","created_at":"2009-09-09T18:27:19Z","updated_at":"2016-04-14T01:35:25Z","pushed_at":"2016-04-14T02:58:35Z","git_url":"git://github.com/gradle/gradle.git","ssh_url":"git@github.com:gradle/gradle.git","clone_url":"https://github.com/gradle/gradle.git","svn_url":"https://github.com/gradle/gradle","homepage":"gradle.org","size":171505,"stargazers_count":3362,"watchers_count":3362,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":1351,"mirror_url":null,"open_issues_count":15,"forks":1351,"open_issues":15,"watchers":3362,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gradle/gradle/pulls/613"},"html":{"href":"https://github.com/gradle/gradle/pull/613"},"issue":{"href":"https://api.github.com/repos/gradle/gradle/issues/613"},"comments":{"href":"https://api.github.com/repos/gradle/gradle/issues/613/comments"},"review_comments":{"href":"https://api.github.com/repos/gradle/gradle/pulls/613/comments"},"review_comment":{"href":"https://api.github.com/repos/gradle/gradle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gradle/gradle/pulls/613/commits"},"statuses":{"href":"https://api.github.com/repos/gradle/gradle/statuses/96c502971f3ea327c793658730328b6aff440e6b"}}}}