{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls/comments/85966272","pull_request_review_id":6649262,"id":85966272,"diff_hunk":"@@ -0,0 +1,183 @@\n+/*\n+ *  Copyright (c) 2016 Google Inc. All Right Reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *         http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package com.google.cloud.tools.gradle.endpoints.client;\n+\n+import com.google.cloud.tools.gradle.endpoints.client.task.GenerateClientLibrariesTask;\n+import com.google.cloud.tools.gradle.endpoints.client.task.GenerateClientLibrarySourceTask;\n+import com.google.cloud.tools.gradle.endpoints.client.task.GetDiscoveryDocsFromDependenciesTask;\n+\n+import org.gradle.api.Action;\n+import org.gradle.api.Plugin;\n+import org.gradle.api.Project;\n+import org.gradle.api.plugins.JavaPlugin;\n+import org.gradle.api.plugins.JavaPluginConvention;\n+import org.gradle.api.tasks.SourceSet;\n+import org.gradle.api.tasks.SourceSetContainer;\n+\n+import java.io.File;\n+import java.util.ArrayList;\n+import java.util.Collection;\n+import java.util.List;\n+\n+/**\n+ * Plugin definition for Endpoints Clients (will generate source when applied)\n+ *\n+ * All tasks are hidden. Configuration of source discovery docs is from two ways:\n+ * 1. specify the location of the discovery doc with the extension\n+ * endpointsClient {","path":"src/main/java/com/google/cloud/tools/gradle/endpoints/client/EndpointsClientPlugin.java","position":41,"original_position":41,"commit_id":"7c7b5805f3e8e0cdeada79944e0ccdd2d0f890e6","original_commit_id":"7c7b5805f3e8e0cdeada79944e0ccdd2d0f890e6","user":{"login":"patflynn","id":7862557,"avatar_url":"https://avatars.githubusercontent.com/u/7862557?v=3","gravatar_id":"","url":"https://api.github.com/users/patflynn","html_url":"https://github.com/patflynn","followers_url":"https://api.github.com/users/patflynn/followers","following_url":"https://api.github.com/users/patflynn/following{/other_user}","gists_url":"https://api.github.com/users/patflynn/gists{/gist_id}","starred_url":"https://api.github.com/users/patflynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patflynn/subscriptions","organizations_url":"https://api.github.com/users/patflynn/orgs","repos_url":"https://api.github.com/users/patflynn/repos","events_url":"https://api.github.com/users/patflynn/events{/privacy}","received_events_url":"https://api.github.com/users/patflynn/received_events","type":"User","site_admin":false},"body":"{@code..}","created_at":"2016-11-01T16:32:42Z","updated_at":"2016-11-01T16:32:42Z","html_url":"https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pull/2#discussion_r85966272","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls/comments/85966272"},"html":{"href":"https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pull/2#discussion_r85966272"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls/2","id":88135370,"html_url":"https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pull/2","diff_url":"https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pull/2.diff","patch_url":"https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pull/2.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/issues/2","number":2,"state":"open","locked":false,"title":"Client plugin","user":{"login":"loosebazooka","id":1304826,"avatar_url":"https://avatars.githubusercontent.com/u/1304826?v=3","gravatar_id":"","url":"https://api.github.com/users/loosebazooka","html_url":"https://github.com/loosebazooka","followers_url":"https://api.github.com/users/loosebazooka/followers","following_url":"https://api.github.com/users/loosebazooka/following{/other_user}","gists_url":"https://api.github.com/users/loosebazooka/gists{/gist_id}","starred_url":"https://api.github.com/users/loosebazooka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loosebazooka/subscriptions","organizations_url":"https://api.github.com/users/loosebazooka/orgs","repos_url":"https://api.github.com/users/loosebazooka/repos","events_url":"https://api.github.com/users/loosebazooka/events{/privacy}","received_events_url":"https://api.github.com/users/loosebazooka/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-05T18:52:31Z","updated_at":"2016-11-01T16:36:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6a8fc56894f4140a897fa55b656ccf8cab942a1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls/2/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls/2/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/issues/2/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/statuses/7c7b5805f3e8e0cdeada79944e0ccdd2d0f890e6","head":{"label":"GoogleCloudPlatform:clientPlugin","ref":"clientPlugin","sha":"7c7b5805f3e8e0cdeada79944e0ccdd2d0f890e6","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":69406311,"name":"endpoints-framework-gradle-plugin","full_name":"GoogleCloudPlatform/endpoints-framework-gradle-plugin","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin","description":null,"fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/deployments","created_at":"2016-09-27T23:13:19Z","updated_at":"2016-10-05T18:31:42Z","pushed_at":"2016-10-31T19:32:46Z","git_url":"git://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin.git","ssh_url":"git@github.com:GoogleCloudPlatform/endpoints-framework-gradle-plugin.git","clone_url":"https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin.git","svn_url":"https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin","homepage":null,"size":79,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"be4a44c0c8e8a31d41ac4b4d6366373eda73cd37","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":69406311,"name":"endpoints-framework-gradle-plugin","full_name":"GoogleCloudPlatform/endpoints-framework-gradle-plugin","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin","description":null,"fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/deployments","created_at":"2016-09-27T23:13:19Z","updated_at":"2016-10-05T18:31:42Z","pushed_at":"2016-10-31T19:32:46Z","git_url":"git://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin.git","ssh_url":"git@github.com:GoogleCloudPlatform/endpoints-framework-gradle-plugin.git","clone_url":"https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin.git","svn_url":"https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin","homepage":null,"size":79,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls/2"},"html":{"href":"https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pull/2"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/issues/2"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-framework-gradle-plugin/statuses/7c7b5805f3e8e0cdeada79944e0ccdd2d0f890e6"}}}}
{"actor":{"display_login":"patflynn"}}