{"action":"created","comment":{"url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/comments/32384677","id":32384677,"diff_hunk":"@@ -163,6 +169,56 @@ class J2objcPluginExtension {\n     // TODO: Handle this automatically in the future.\n     boolean appendProjectDependenciesToSourcepath = false\n \n+    /**\n+     * @see #dependsOnJ2objcLib(org.gradle.api.Project)\n+     */\n+    def dependsOnJ2objcLib(String beforeProjectName) {\n+        return dependsOnJ2objcLib(extendedProject.project(beforeProjectName))\n+    }\n+\n+    protected J2objcNativeCompilation nativeCompilation\n+    /**\n+     * Uses the generated headers and compiled j2objc libraries of the given project when\n+     * compiling this project.\n+     * <p/>\n+     * Generally every cross-project 'compile' dependency should have a corresponding\n+     * call to dependsOnJ2objcLib.\n+     * <p/>\n+     * It is safe to use this in conjunction with --build-closure, however do not duplicate\n+     * this project's Java or Objective C source and/or libraries in any of the translation","path":"src/main/groovy/com/github/j2objccontrib/j2objcgradle/J2objcPluginExtension.groovy","position":45,"original_position":45,"commit_id":"ac807a959b83e792b2df1d2e4d9d132b55728ea6","original_commit_id":"2012dfb16cb3f4093160dc7ffc092a463bc2babe","user":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"body":"agreed, see my reply to you below re: reusing the dependencies.","created_at":"2015-06-14T21:48:00Z","updated_at":"2015-06-14T21:48:00Z","html_url":"https://github.com/j2objc-contrib/j2objc-gradle/pull/158#discussion_r32384677","pull_request_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/158","_links":{"self":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/comments/32384677"},"html":{"href":"https://github.com/j2objc-contrib/j2objc-gradle/pull/158#discussion_r32384677"},"pull_request":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/158"}}},"pull_request":{"url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/158","id":37536643,"html_url":"https://github.com/j2objc-contrib/j2objc-gradle/pull/158","diff_url":"https://github.com/j2objc-contrib/j2objc-gradle/pull/158.diff","patch_url":"https://github.com/j2objc-contrib/j2objc-gradle/pull/158.patch","issue_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/158","number":158,"state":"open","locked":false,"title":"Multi-project dependencies","user":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"body":"Prereq: #157 \r\n\r\n- Users must call configureNativeBuild() at the end of their j2objcConfig.\r\n- dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project\r\n- extra* flags allow you to customize the objective-c builds.\r\n- stop prefixing all translateClassPaths with lib/\r\n\r\nUgly but it works.  The inability to reconfigure a previously\r\ncreated native component is an issue others are hitting too:\r\nhttps://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937\r\n\r\nFixes #153, Fixes #51","created_at":"2015-06-12T06:58:14Z","updated_at":"2015-06-14T21:48:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78e2d112f631972ceb92668a54886be7794d0452","assignee":{"login":"brunobowden","id":679339,"avatar_url":"https://avatars.githubusercontent.com/u/679339?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobowden","html_url":"https://github.com/brunobowden","followers_url":"https://api.github.com/users/brunobowden/followers","following_url":"https://api.github.com/users/brunobowden/following{/other_user}","gists_url":"https://api.github.com/users/brunobowden/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobowden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobowden/subscriptions","organizations_url":"https://api.github.com/users/brunobowden/orgs","repos_url":"https://api.github.com/users/brunobowden/repos","events_url":"https://api.github.com/users/brunobowden/events{/privacy}","received_events_url":"https://api.github.com/users/brunobowden/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/milestones/3","html_url":"https://github.com/j2objc-contrib/j2objc-gradle/milestones/Beta%20Release","labels_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/milestones/3/labels","id":1162580,"number":3,"title":"Beta Release","description":null,"creator":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":2,"state":"open","created_at":"2015-06-12T19:01:13Z","updated_at":"2015-06-14T21:25:37Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/158/commits","review_comments_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/158/comments","review_comment_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/158/comments","statuses_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/statuses/ac807a959b83e792b2df1d2e4d9d132b55728ea6","head":{"label":"advayDev1:dependsBetter","ref":"dependsBetter","sha":"ac807a959b83e792b2df1d2e4d9d132b55728ea6","user":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"repo":{"id":33487475,"name":"j2objc-gradle","full_name":"advayDev1/j2objc-gradle","owner":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/advayDev1/j2objc-gradle","description":"Gradle plugin for j2objc (Java to Objective-C transpiler)","fork":true,"url":"https://api.github.com/repos/advayDev1/j2objc-gradle","forks_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/forks","keys_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/teams","hooks_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/hooks","issue_events_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/issues/events{/number}","events_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/events","assignees_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/assignees{/user}","branches_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/branches{/branch}","tags_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/tags","blobs_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/statuses/{sha}","languages_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/languages","stargazers_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/stargazers","contributors_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/contributors","subscribers_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/subscribers","subscription_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/subscription","commits_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/contents/{+path}","compare_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/merges","archive_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/downloads","issues_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/issues{/number}","pulls_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/pulls{/number}","milestones_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/milestones{/number}","notifications_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/labels{/name}","releases_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/releases{/id}","created_at":"2015-04-06T14:55:35Z","updated_at":"2015-06-07T01:28:32Z","pushed_at":"2015-06-14T20:51:08Z","git_url":"git://github.com/advayDev1/j2objc-gradle.git","ssh_url":"git@github.com:advayDev1/j2objc-gradle.git","clone_url":"https://github.com/advayDev1/j2objc-gradle.git","svn_url":"https://github.com/advayDev1/j2objc-gradle","homepage":"https://github.com/j2objc-contrib/j2objc-gradle","size":649,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"j2objc-contrib:master","ref":"master","sha":"207496b01afa2735831b3a4049df60fccec0b7a6","user":{"login":"j2objc-contrib","id":12766207,"avatar_url":"https://avatars.githubusercontent.com/u/12766207?v=3","gravatar_id":"","url":"https://api.github.com/users/j2objc-contrib","html_url":"https://github.com/j2objc-contrib","followers_url":"https://api.github.com/users/j2objc-contrib/followers","following_url":"https://api.github.com/users/j2objc-contrib/following{/other_user}","gists_url":"https://api.github.com/users/j2objc-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/j2objc-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j2objc-contrib/subscriptions","organizations_url":"https://api.github.com/users/j2objc-contrib/orgs","repos_url":"https://api.github.com/users/j2objc-contrib/repos","events_url":"https://api.github.com/users/j2objc-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/j2objc-contrib/received_events","type":"Organization","site_admin":false},"repo":{"id":30206593,"name":"j2objc-gradle","full_name":"j2objc-contrib/j2objc-gradle","owner":{"login":"j2objc-contrib","id":12766207,"avatar_url":"https://avatars.githubusercontent.com/u/12766207?v=3","gravatar_id":"","url":"https://api.github.com/users/j2objc-contrib","html_url":"https://github.com/j2objc-contrib","followers_url":"https://api.github.com/users/j2objc-contrib/followers","following_url":"https://api.github.com/users/j2objc-contrib/following{/other_user}","gists_url":"https://api.github.com/users/j2objc-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/j2objc-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j2objc-contrib/subscriptions","organizations_url":"https://api.github.com/users/j2objc-contrib/orgs","repos_url":"https://api.github.com/users/j2objc-contrib/repos","events_url":"https://api.github.com/users/j2objc-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/j2objc-contrib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/j2objc-contrib/j2objc-gradle","description":"Gradle plugin for j2objc (Java to Objective-C transpiler)","fork":false,"url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle","forks_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/forks","keys_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/teams","hooks_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/hooks","issue_events_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/events{/number}","events_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/events","assignees_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/assignees{/user}","branches_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/branches{/branch}","tags_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/tags","blobs_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/statuses/{sha}","languages_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/languages","stargazers_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/stargazers","contributors_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/contributors","subscribers_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/subscribers","subscription_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/subscription","commits_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/contents/{+path}","compare_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/merges","archive_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/downloads","issues_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues{/number}","pulls_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls{/number}","milestones_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/milestones{/number}","notifications_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/labels{/name}","releases_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/releases{/id}","created_at":"2015-02-02T20:22:07Z","updated_at":"2015-06-12T18:14:45Z","pushed_at":"2015-06-14T20:51:09Z","git_url":"git://github.com/j2objc-contrib/j2objc-gradle.git","ssh_url":"git@github.com:j2objc-contrib/j2objc-gradle.git","clone_url":"https://github.com/j2objc-contrib/j2objc-gradle.git","svn_url":"https://github.com/j2objc-contrib/j2objc-gradle","homepage":null,"size":766,"stargazers_count":33,"watchers_count":33,"language":"Groovy","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":44,"forks":8,"open_issues":44,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/158"},"html":{"href":"https://github.com/j2objc-contrib/j2objc-gradle/pull/158"},"issue":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/158"},"comments":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/statuses/ac807a959b83e792b2df1d2e4d9d132b55728ea6"}}}}