{"action":"created","comment":{"url":"https://api.github.com/repos/linkedin/pygradle/pulls/comments/76067108","id":76067108,"diff_hunk":"@@ -129,6 +133,10 @@ class PythonExtension {\n         return details\n     }\n \n+    public void details(Closure cl) {","path":"pygradle-plugin/src/main/groovy/com/linkedin/gradle/python/PythonExtension.groovy","position":22,"original_position":22,"commit_id":"983211c7b7d9703abe884fdc576405cddb094ea9","original_commit_id":"983211c7b7d9703abe884fdc576405cddb094ea9","user":{"login":"ethankhall","id":794802,"avatar_url":"https://avatars.githubusercontent.com/u/794802?v=3","gravatar_id":"","url":"https://api.github.com/users/ethankhall","html_url":"https://github.com/ethankhall","followers_url":"https://api.github.com/users/ethankhall/followers","following_url":"https://api.github.com/users/ethankhall/following{/other_user}","gists_url":"https://api.github.com/users/ethankhall/gists{/gist_id}","starred_url":"https://api.github.com/users/ethankhall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethankhall/subscriptions","organizations_url":"https://api.github.com/users/ethankhall/orgs","repos_url":"https://api.github.com/users/ethankhall/repos","events_url":"https://api.github.com/users/ethankhall/events{/privacy}","received_events_url":"https://api.github.com/users/ethankhall/received_events","type":"User","site_admin":false},"body":"This is the correct pattern (ref: https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#dependencies(groovy.lang.Closure) ). You should call it the name you want in the DSL and it accepts a Closure.","created_at":"2016-08-24T14:29:35Z","updated_at":"2016-08-24T14:29:35Z","html_url":"https://github.com/linkedin/pygradle/pull/31#discussion_r76067108","pull_request_url":"https://api.github.com/repos/linkedin/pygradle/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/linkedin/pygradle/pulls/comments/76067108"},"html":{"href":"https://github.com/linkedin/pygradle/pull/31#discussion_r76067108"},"pull_request":{"href":"https://api.github.com/repos/linkedin/pygradle/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/linkedin/pygradle/pulls/31","id":82463226,"html_url":"https://github.com/linkedin/pygradle/pull/31","diff_url":"https://github.com/linkedin/pygradle/pull/31.diff","patch_url":"https://github.com/linkedin/pygradle/pull/31.patch","issue_url":"https://api.github.com/repos/linkedin/pygradle/issues/31","number":31,"state":"open","locked":false,"title":"Cannot set `details` block in `build.gradle`","user":{"login":"worr","id":183837,"avatar_url":"https://avatars.githubusercontent.com/u/183837?v=3","gravatar_id":"","url":"https://api.github.com/users/worr","html_url":"https://github.com/worr","followers_url":"https://api.github.com/users/worr/followers","following_url":"https://api.github.com/users/worr/following{/other_user}","gists_url":"https://api.github.com/users/worr/gists{/gist_id}","starred_url":"https://api.github.com/users/worr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/worr/subscriptions","organizations_url":"https://api.github.com/users/worr/orgs","repos_url":"https://api.github.com/users/worr/repos","events_url":"https://api.github.com/users/worr/events{/privacy}","received_events_url":"https://api.github.com/users/worr/received_events","type":"User","site_admin":false},"body":"When setting the `details` block in your `build.gradle`, gradle yields the following when trying to build your project.\r\n\r\n```\r\nFAILURE: Build failed with an exception.\r\n\r\n* Where:\r\nBuild file '/tmp/junit3053109164895062324/build.gradle' line: 7\r\n\r\n* What went wrong:\r\nA problem occurred evaluating root project 'junit3053109164895062324'.\r\n> Could not find method details() for arguments [build_4vooep3cvvjfq4yfrz6qrhcgl$_run_closure1$_closure3@68f7c8eb] on root project 'junit3053109164895062324'.\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\nBUILD FAILED\r\n\r\nTotal time: 0.152 secs\r\n\r\n\tat org.gradle.testkit.runner.internal.DefaultGradleRunner$1.execute(DefaultGradleRunner.java:222)\r\n\tat org.gradle.testkit.runner.internal.DefaultGradleRunner$1.execute(DefaultGradleRunner.java:219)\r\n\tat org.gradle.testkit.runner.internal.DefaultGradleRunner.run(DefaultGradleRunner.java:282)\r\n\tat org.gradle.testkit.runner.internal.DefaultGradleRunner.build(DefaultGradleRunner.java:219)\r\n\tat com.linkedin.gradle.python.plugin.PythonPluginIntegrationTestv3.can build library(PythonPluginIntegrationTestv3.groovy:67)\r\n```\r\n\r\nI've attached a PR with an integration test to demonstrate the failure.","created_at":"2016-08-24T00:22:03Z","updated_at":"2016-08-24T14:29:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9574ea033ac27429806d7937ebc5279cfcc10fd5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/linkedin/pygradle/pulls/31/commits","review_comments_url":"https://api.github.com/repos/linkedin/pygradle/pulls/31/comments","review_comment_url":"https://api.github.com/repos/linkedin/pygradle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linkedin/pygradle/issues/31/comments","statuses_url":"https://api.github.com/repos/linkedin/pygradle/statuses/983211c7b7d9703abe884fdc576405cddb094ea9","head":{"label":"worr:test/v3","ref":"test/v3","sha":"983211c7b7d9703abe884fdc576405cddb094ea9","user":{"login":"worr","id":183837,"avatar_url":"https://avatars.githubusercontent.com/u/183837?v=3","gravatar_id":"","url":"https://api.github.com/users/worr","html_url":"https://github.com/worr","followers_url":"https://api.github.com/users/worr/followers","following_url":"https://api.github.com/users/worr/following{/other_user}","gists_url":"https://api.github.com/users/worr/gists{/gist_id}","starred_url":"https://api.github.com/users/worr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/worr/subscriptions","organizations_url":"https://api.github.com/users/worr/orgs","repos_url":"https://api.github.com/users/worr/repos","events_url":"https://api.github.com/users/worr/events{/privacy}","received_events_url":"https://api.github.com/users/worr/received_events","type":"User","site_admin":false},"repo":{"id":66413426,"name":"pygradle","full_name":"worr/pygradle","owner":{"login":"worr","id":183837,"avatar_url":"https://avatars.githubusercontent.com/u/183837?v=3","gravatar_id":"","url":"https://api.github.com/users/worr","html_url":"https://github.com/worr","followers_url":"https://api.github.com/users/worr/followers","following_url":"https://api.github.com/users/worr/following{/other_user}","gists_url":"https://api.github.com/users/worr/gists{/gist_id}","starred_url":"https://api.github.com/users/worr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/worr/subscriptions","organizations_url":"https://api.github.com/users/worr/orgs","repos_url":"https://api.github.com/users/worr/repos","events_url":"https://api.github.com/users/worr/events{/privacy}","received_events_url":"https://api.github.com/users/worr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/worr/pygradle","description":"Using Gradle to build Python projects","fork":true,"url":"https://api.github.com/repos/worr/pygradle","forks_url":"https://api.github.com/repos/worr/pygradle/forks","keys_url":"https://api.github.com/repos/worr/pygradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/worr/pygradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/worr/pygradle/teams","hooks_url":"https://api.github.com/repos/worr/pygradle/hooks","issue_events_url":"https://api.github.com/repos/worr/pygradle/issues/events{/number}","events_url":"https://api.github.com/repos/worr/pygradle/events","assignees_url":"https://api.github.com/repos/worr/pygradle/assignees{/user}","branches_url":"https://api.github.com/repos/worr/pygradle/branches{/branch}","tags_url":"https://api.github.com/repos/worr/pygradle/tags","blobs_url":"https://api.github.com/repos/worr/pygradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/worr/pygradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/worr/pygradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/worr/pygradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/worr/pygradle/statuses/{sha}","languages_url":"https://api.github.com/repos/worr/pygradle/languages","stargazers_url":"https://api.github.com/repos/worr/pygradle/stargazers","contributors_url":"https://api.github.com/repos/worr/pygradle/contributors","subscribers_url":"https://api.github.com/repos/worr/pygradle/subscribers","subscription_url":"https://api.github.com/repos/worr/pygradle/subscription","commits_url":"https://api.github.com/repos/worr/pygradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/worr/pygradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/worr/pygradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/worr/pygradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/worr/pygradle/contents/{+path}","compare_url":"https://api.github.com/repos/worr/pygradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/worr/pygradle/merges","archive_url":"https://api.github.com/repos/worr/pygradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/worr/pygradle/downloads","issues_url":"https://api.github.com/repos/worr/pygradle/issues{/number}","pulls_url":"https://api.github.com/repos/worr/pygradle/pulls{/number}","milestones_url":"https://api.github.com/repos/worr/pygradle/milestones{/number}","notifications_url":"https://api.github.com/repos/worr/pygradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/worr/pygradle/labels{/name}","releases_url":"https://api.github.com/repos/worr/pygradle/releases{/id}","deployments_url":"https://api.github.com/repos/worr/pygradle/deployments","created_at":"2016-08-24T00:13:08Z","updated_at":"2016-08-24T00:13:09Z","pushed_at":"2016-08-24T05:11:29Z","git_url":"git://github.com/worr/pygradle.git","ssh_url":"git@github.com:worr/pygradle.git","clone_url":"https://github.com/worr/pygradle.git","svn_url":"https://github.com/worr/pygradle","homepage":"https://github.com/linkedin/pygradle","size":358,"stargazers_count":0,"watchers_count":0,"language":"Groovy","has_issues":false,"has_downloads":true,"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":"linkedin:master","ref":"master","sha":"69f4d6da5329c0faad0ebd6dfe5f743d36e4a8a2","user":{"login":"linkedin","id":357098,"avatar_url":"https://avatars.githubusercontent.com/u/357098?v=3","gravatar_id":"","url":"https://api.github.com/users/linkedin","html_url":"https://github.com/linkedin","followers_url":"https://api.github.com/users/linkedin/followers","following_url":"https://api.github.com/users/linkedin/following{/other_user}","gists_url":"https://api.github.com/users/linkedin/gists{/gist_id}","starred_url":"https://api.github.com/users/linkedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkedin/subscriptions","organizations_url":"https://api.github.com/users/linkedin/orgs","repos_url":"https://api.github.com/users/linkedin/repos","events_url":"https://api.github.com/users/linkedin/events{/privacy}","received_events_url":"https://api.github.com/users/linkedin/received_events","type":"Organization","site_admin":false},"repo":{"id":61583938,"name":"pygradle","full_name":"linkedin/pygradle","owner":{"login":"linkedin","id":357098,"avatar_url":"https://avatars.githubusercontent.com/u/357098?v=3","gravatar_id":"","url":"https://api.github.com/users/linkedin","html_url":"https://github.com/linkedin","followers_url":"https://api.github.com/users/linkedin/followers","following_url":"https://api.github.com/users/linkedin/following{/other_user}","gists_url":"https://api.github.com/users/linkedin/gists{/gist_id}","starred_url":"https://api.github.com/users/linkedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkedin/subscriptions","organizations_url":"https://api.github.com/users/linkedin/orgs","repos_url":"https://api.github.com/users/linkedin/repos","events_url":"https://api.github.com/users/linkedin/events{/privacy}","received_events_url":"https://api.github.com/users/linkedin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linkedin/pygradle","description":"Using Gradle to build Python projects","fork":false,"url":"https://api.github.com/repos/linkedin/pygradle","forks_url":"https://api.github.com/repos/linkedin/pygradle/forks","keys_url":"https://api.github.com/repos/linkedin/pygradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linkedin/pygradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linkedin/pygradle/teams","hooks_url":"https://api.github.com/repos/linkedin/pygradle/hooks","issue_events_url":"https://api.github.com/repos/linkedin/pygradle/issues/events{/number}","events_url":"https://api.github.com/repos/linkedin/pygradle/events","assignees_url":"https://api.github.com/repos/linkedin/pygradle/assignees{/user}","branches_url":"https://api.github.com/repos/linkedin/pygradle/branches{/branch}","tags_url":"https://api.github.com/repos/linkedin/pygradle/tags","blobs_url":"https://api.github.com/repos/linkedin/pygradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linkedin/pygradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linkedin/pygradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/linkedin/pygradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linkedin/pygradle/statuses/{sha}","languages_url":"https://api.github.com/repos/linkedin/pygradle/languages","stargazers_url":"https://api.github.com/repos/linkedin/pygradle/stargazers","contributors_url":"https://api.github.com/repos/linkedin/pygradle/contributors","subscribers_url":"https://api.github.com/repos/linkedin/pygradle/subscribers","subscription_url":"https://api.github.com/repos/linkedin/pygradle/subscription","commits_url":"https://api.github.com/repos/linkedin/pygradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/linkedin/pygradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/linkedin/pygradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/linkedin/pygradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/linkedin/pygradle/contents/{+path}","compare_url":"https://api.github.com/repos/linkedin/pygradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linkedin/pygradle/merges","archive_url":"https://api.github.com/repos/linkedin/pygradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linkedin/pygradle/downloads","issues_url":"https://api.github.com/repos/linkedin/pygradle/issues{/number}","pulls_url":"https://api.github.com/repos/linkedin/pygradle/pulls{/number}","milestones_url":"https://api.github.com/repos/linkedin/pygradle/milestones{/number}","notifications_url":"https://api.github.com/repos/linkedin/pygradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linkedin/pygradle/labels{/name}","releases_url":"https://api.github.com/repos/linkedin/pygradle/releases{/id}","deployments_url":"https://api.github.com/repos/linkedin/pygradle/deployments","created_at":"2016-06-20T22:12:38Z","updated_at":"2016-08-24T14:24:02Z","pushed_at":"2016-08-24T05:11:29Z","git_url":"git://github.com/linkedin/pygradle.git","ssh_url":"git@github.com:linkedin/pygradle.git","clone_url":"https://github.com/linkedin/pygradle.git","svn_url":"https://github.com/linkedin/pygradle","homepage":"https://github.com/linkedin/pygradle","size":371,"stargazers_count":90,"watchers_count":90,"language":"Groovy","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":6,"forks":9,"open_issues":6,"watchers":90,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linkedin/pygradle/pulls/31"},"html":{"href":"https://github.com/linkedin/pygradle/pull/31"},"issue":{"href":"https://api.github.com/repos/linkedin/pygradle/issues/31"},"comments":{"href":"https://api.github.com/repos/linkedin/pygradle/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/linkedin/pygradle/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/linkedin/pygradle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linkedin/pygradle/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/linkedin/pygradle/statuses/983211c7b7d9703abe884fdc576405cddb094ea9"}}}}
{"actor":{"display_login":"ethankhall"}}