{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls/comments/224528895","pull_request_review_id":163920286,"id":224528895,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDUyODg5NQ==","diff_hunk":"@@ -84,6 +133,30 @@ public static void main(String[] arguments) throws IOException, ClassNotFoundExc\n     System.out.println(stringBuilder.toString());\n   }\n \n+  /**\n+   * Finds jar file paths for the dependencies of the Maven coordinate.\n+   *\n+   * @param coordinate Maven coordinate of an artifact to check its dependencies\n+   * @return list of absolute paths to jar files\n+   * @throws RepositoryException when there is a problem in retrieving jar files\n+   */\n+  static List<Path> coordinateToJarPaths(String coordinate) throws RepositoryException {\n+    DefaultArtifact artifact = new DefaultArtifact(coordinate);\n+    DependencyGraph transitiveDependencies =\n+        DependencyGraphBuilder.getTransitiveDependencies(artifact);\n+    List<DependencyPath> dependencyPaths = transitiveDependencies.list();","path":"dependencies/src/main/java/com/google/cloud/tools/opensource/classpath/StaticLinkageChecker.java","position":143,"original_position":123,"commit_id":"507ab2425844302d7e915941b20b6cf0c623bb85","original_commit_id":"189c1d7ee685b519b2c75b1fe51a5a79c71cb394","user":{"login":"suztomo","id":28604,"node_id":"MDQ6VXNlcjI4NjA0","avatar_url":"https://avatars3.githubusercontent.com/u/28604?v=4","gravatar_id":"","url":"https://api.github.com/users/suztomo","html_url":"https://github.com/suztomo","followers_url":"https://api.github.com/users/suztomo/followers","following_url":"https://api.github.com/users/suztomo/following{/other_user}","gists_url":"https://api.github.com/users/suztomo/gists{/gist_id}","starred_url":"https://api.github.com/users/suztomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suztomo/subscriptions","organizations_url":"https://api.github.com/users/suztomo/orgs","repos_url":"https://api.github.com/users/suztomo/repos","events_url":"https://api.github.com/users/suztomo/events{/privacy}","received_events_url":"https://api.github.com/users/suztomo/received_events","type":"User","site_admin":false},"body":"Yes, the list would includes both in that case.\r\n\r\nHowever, the order may not be what Maven uses (BFS)...","created_at":"2018-10-11T17:06:42Z","updated_at":"2018-10-11T17:06:42Z","html_url":"https://github.com/GoogleCloudPlatform/cloud-opensource-java/pull/140#discussion_r224528895","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls/140","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls/comments/224528895"},"html":{"href":"https://github.com/GoogleCloudPlatform/cloud-opensource-java/pull/140#discussion_r224528895"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls/140"}},"in_reply_to_id":224504274},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls/140","id":222160663,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyMTYwNjYz","html_url":"https://github.com/GoogleCloudPlatform/cloud-opensource-java/pull/140","diff_url":"https://github.com/GoogleCloudPlatform/cloud-opensource-java/pull/140.diff","patch_url":"https://github.com/GoogleCloudPlatform/cloud-opensource-java/pull/140.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/issues/140","number":140,"state":"open","locked":false,"title":"Coordinate to jars","user":{"login":"suztomo","id":28604,"node_id":"MDQ6VXNlcjI4NjA0","avatar_url":"https://avatars3.githubusercontent.com/u/28604?v=4","gravatar_id":"","url":"https://api.github.com/users/suztomo","html_url":"https://github.com/suztomo","followers_url":"https://api.github.com/users/suztomo/followers","following_url":"https://api.github.com/users/suztomo/following{/other_user}","gists_url":"https://api.github.com/users/suztomo/gists{/gist_id}","starred_url":"https://api.github.com/users/suztomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suztomo/subscriptions","organizations_url":"https://api.github.com/users/suztomo/orgs","repos_url":"https://api.github.com/users/suztomo/repos","events_url":"https://api.github.com/users/suztomo/events{/privacy}","received_events_url":"https://api.github.com/users/suztomo/received_events","type":"User","site_admin":false},"body":"StaticLinkageChecker to resolve Maven coordinate to jars using DependencyGraphBuilder.getTransitiveDependencies","created_at":"2018-10-11T14:30:19Z","updated_at":"2018-10-11T17:06:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c206074dfe5286874ad6915425fb1d7a0206a20","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls/140/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls/140/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/issues/140/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/statuses/507ab2425844302d7e915941b20b6cf0c623bb85","head":{"label":"GoogleCloudPlatform:coordinate_to_jars","ref":"coordinate_to_jars","sha":"507ab2425844302d7e915941b20b6cf0c623bb85","user":{"login":"GoogleCloudPlatform","id":2810941,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","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":134450682,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ0NTA2ODI=","name":"cloud-opensource-java","full_name":"GoogleCloudPlatform/cloud-opensource-java","private":false,"owner":{"login":"GoogleCloudPlatform","id":2810941,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","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},"html_url":"https://github.com/GoogleCloudPlatform/cloud-opensource-java","description":"Code health dashboard for GCP open source projects","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/deployments","created_at":"2018-05-22T17:24:30Z","updated_at":"2018-10-11T17:02:08Z","pushed_at":"2018-10-11T17:05:06Z","git_url":"git://github.com/GoogleCloudPlatform/cloud-opensource-java.git","ssh_url":"git@github.com:GoogleCloudPlatform/cloud-opensource-java.git","clone_url":"https://github.com/GoogleCloudPlatform/cloud-opensource-java.git","svn_url":"https://github.com/GoogleCloudPlatform/cloud-opensource-java","homepage":"","size":1196,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":44,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":44,"watchers":4,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"3765cfff7a0def94b77d63af811b26c3c3bb23f8","user":{"login":"GoogleCloudPlatform","id":2810941,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","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":134450682,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ0NTA2ODI=","name":"cloud-opensource-java","full_name":"GoogleCloudPlatform/cloud-opensource-java","private":false,"owner":{"login":"GoogleCloudPlatform","id":2810941,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","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},"html_url":"https://github.com/GoogleCloudPlatform/cloud-opensource-java","description":"Code health dashboard for GCP open source projects","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/deployments","created_at":"2018-05-22T17:24:30Z","updated_at":"2018-10-11T17:02:08Z","pushed_at":"2018-10-11T17:05:06Z","git_url":"git://github.com/GoogleCloudPlatform/cloud-opensource-java.git","ssh_url":"git@github.com:GoogleCloudPlatform/cloud-opensource-java.git","clone_url":"https://github.com/GoogleCloudPlatform/cloud-opensource-java.git","svn_url":"https://github.com/GoogleCloudPlatform/cloud-opensource-java","homepage":"","size":1196,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":44,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":44,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls/140"},"html":{"href":"https://github.com/GoogleCloudPlatform/cloud-opensource-java/pull/140"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/issues/140"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-opensource-java/statuses/507ab2425844302d7e915941b20b6cf0c623bb85"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"suztomo"}}