{"action":"created","comment":{"url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/comments/34750661","id":34750661,"diff_hunk":"@@ -38,22 +44,48 @@ class TestingUtils {\n      * (proj, j2objcHome, j2objcConfig) = TestingUtils.setupProject(true)\n      *\n      * @param createReportsDir to create projectDir/build/reports for writing output\n+     * @param createJ2objcConfig to create the j2objcConfig extension\n+     * @param applyJavaPlugin to apply the JavaPlugin\n+     * @param applyJ2objcPlugin to apply the J2objcPlugin\n+     * @param rootProject the parent project for this project, if any\n      * @return [Project proj, String j2objcHome, J2objcConfig j2objcConfig] multiple assignment\n      */\n-    static Object[] setupProject(boolean createReportsDir) {\n+    static Object[] setupProject(boolean createReportsDir,\n+                                 boolean createJ2objcConfig = true,\n+                                 boolean applyJavaPlugin = true,\n+                                 boolean applyJ2objcPlugin = false,\n+                                 Project rootProject = null) {\n         // Builds temporary project\n-        Project proj = ProjectBuilder.builder().build()\n+        Project proj = ProjectBuilder.builder()\n+                .withParent(rootProject)\n+                .withName(\"test${projectIndex.getAndIncrement()}\")\n+                .build()\n+        if (rootProject != null) {\n+            // When using a child project, the project's directory (a subdirectory of the root)\n+            // is not created automatically.\n+            proj.projectDir.mkdir()\n+        }\n \n-        // To satisfy Utils.throwIfNoJavaPlugin()\n-        proj.pluginManager.apply(JavaPlugin)\n+        if (applyJavaPlugin) {\n+            // To satisfy Utils.throwIfNoJavaPlugin()\n+            proj.pluginManager.apply(JavaPlugin)\n+        }\n \n         // To satisfy Utils.J2objcHome()\n         String j2objcHome = File.createTempDir('J2OBJC_HOME', '').path\n         File localProperties = proj.file('local.properties')\n         localProperties.write(\"j2objc.home=$j2objcHome\\n\")\n \n+        if (applyJ2objcPlugin) {\n+            proj.pluginManager.apply(J2objcPlugin)\n+        }\n+\n         // For configuration of plugin inputs\n-        J2objcConfig j2objcConfig = proj.extensions.create('j2objcConfig', J2objcConfig, proj)\n+        J2objcConfig j2objcConfig = applyJ2objcPlugin ?\n+                                    proj.extensions.getByName('j2objcConfig') :\n+                                    (createJ2objcConfig ?\n+                                     proj.extensions.create('j2objcConfig', J2objcConfig, proj) :\n+                                     null)","path":"src/test/groovy/com/github/j2objccontrib/j2objcgradle/tasks/TestingUtils.groovy","position":75,"original_position":75,"commit_id":"5b516434ee69d141a0900382f2b2f623a0ee9be8","original_commit_id":"5b516434ee69d141a0900382f2b2f623a0ee9be8","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":"ok","created_at":"2015-07-16T02:27:11Z","updated_at":"2015-07-16T02:27:11Z","html_url":"https://github.com/j2objc-contrib/j2objc-gradle/pull/284#discussion_r34750661","pull_request_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/284","_links":{"self":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/comments/34750661"},"html":{"href":"https://github.com/j2objc-contrib/j2objc-gradle/pull/284#discussion_r34750661"},"pull_request":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/284"}}},"pull_request":{"url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/284","id":40083633,"html_url":"https://github.com/j2objc-contrib/j2objc-gradle/pull/284","diff_url":"https://github.com/j2objc-contrib/j2objc-gradle/pull/284.diff","patch_url":"https://github.com/j2objc-contrib/j2objc-gradle/pull/284.patch","issue_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/284","number":284,"state":"open","locked":false,"title":"A few multi-project integration tests.  #230","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":"This is not high coverage, but gives a flavor of what these tests will look like.\r\nNativeCompilation will also require integration tests of a similar kind\r\nsince our interaction with the ObjectiveC plugin cannot be unit-tested effectively.\r\n","created_at":"2015-07-16T00:19:07Z","updated_at":"2015-07-16T02:27:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ced28d620861448c92a2575b6b3cd49c766b186c","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/5","html_url":"https://github.com/j2objc-contrib/j2objc-gradle/milestones/0.4%20Release","labels_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/milestones/5/labels","id":1189599,"number":5,"title":"0.4 Release","description":"","creator":{"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},"open_issues":8,"closed_issues":11,"state":"open","created_at":"2015-07-01T19:19:35Z","updated_at":"2015-07-16T00:56:51Z","due_on":"2015-07-16T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/284/commits","review_comments_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/284/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/284/comments","statuses_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/statuses/5b516434ee69d141a0900382f2b2f623a0ee9be8","head":{"label":"madvay:moreTests","ref":"moreTests","sha":"5b516434ee69d141a0900382f2b2f623a0ee9be8","user":{"login":"madvay","id":13328764,"avatar_url":"https://avatars.githubusercontent.com/u/13328764?v=3","gravatar_id":"","url":"https://api.github.com/users/madvay","html_url":"https://github.com/madvay","followers_url":"https://api.github.com/users/madvay/followers","following_url":"https://api.github.com/users/madvay/following{/other_user}","gists_url":"https://api.github.com/users/madvay/gists{/gist_id}","starred_url":"https://api.github.com/users/madvay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madvay/subscriptions","organizations_url":"https://api.github.com/users/madvay/orgs","repos_url":"https://api.github.com/users/madvay/repos","events_url":"https://api.github.com/users/madvay/events{/privacy}","received_events_url":"https://api.github.com/users/madvay/received_events","type":"Organization","site_admin":false},"repo":{"id":33487475,"name":"j2objc-gradle","full_name":"madvay/j2objc-gradle","owner":{"login":"madvay","id":13328764,"avatar_url":"https://avatars.githubusercontent.com/u/13328764?v=3","gravatar_id":"","url":"https://api.github.com/users/madvay","html_url":"https://github.com/madvay","followers_url":"https://api.github.com/users/madvay/followers","following_url":"https://api.github.com/users/madvay/following{/other_user}","gists_url":"https://api.github.com/users/madvay/gists{/gist_id}","starred_url":"https://api.github.com/users/madvay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madvay/subscriptions","organizations_url":"https://api.github.com/users/madvay/orgs","repos_url":"https://api.github.com/users/madvay/repos","events_url":"https://api.github.com/users/madvay/events{/privacy}","received_events_url":"https://api.github.com/users/madvay/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/madvay/j2objc-gradle","description":"Gradle plugin for j2objc (Java to Objective-C transpiler)","fork":true,"url":"https://api.github.com/repos/madvay/j2objc-gradle","forks_url":"https://api.github.com/repos/madvay/j2objc-gradle/forks","keys_url":"https://api.github.com/repos/madvay/j2objc-gradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/madvay/j2objc-gradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/madvay/j2objc-gradle/teams","hooks_url":"https://api.github.com/repos/madvay/j2objc-gradle/hooks","issue_events_url":"https://api.github.com/repos/madvay/j2objc-gradle/issues/events{/number}","events_url":"https://api.github.com/repos/madvay/j2objc-gradle/events","assignees_url":"https://api.github.com/repos/madvay/j2objc-gradle/assignees{/user}","branches_url":"https://api.github.com/repos/madvay/j2objc-gradle/branches{/branch}","tags_url":"https://api.github.com/repos/madvay/j2objc-gradle/tags","blobs_url":"https://api.github.com/repos/madvay/j2objc-gradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/madvay/j2objc-gradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/madvay/j2objc-gradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/madvay/j2objc-gradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/madvay/j2objc-gradle/statuses/{sha}","languages_url":"https://api.github.com/repos/madvay/j2objc-gradle/languages","stargazers_url":"https://api.github.com/repos/madvay/j2objc-gradle/stargazers","contributors_url":"https://api.github.com/repos/madvay/j2objc-gradle/contributors","subscribers_url":"https://api.github.com/repos/madvay/j2objc-gradle/subscribers","subscription_url":"https://api.github.com/repos/madvay/j2objc-gradle/subscription","commits_url":"https://api.github.com/repos/madvay/j2objc-gradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/madvay/j2objc-gradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/madvay/j2objc-gradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/madvay/j2objc-gradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/madvay/j2objc-gradle/contents/{+path}","compare_url":"https://api.github.com/repos/madvay/j2objc-gradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/madvay/j2objc-gradle/merges","archive_url":"https://api.github.com/repos/madvay/j2objc-gradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/madvay/j2objc-gradle/downloads","issues_url":"https://api.github.com/repos/madvay/j2objc-gradle/issues{/number}","pulls_url":"https://api.github.com/repos/madvay/j2objc-gradle/pulls{/number}","milestones_url":"https://api.github.com/repos/madvay/j2objc-gradle/milestones{/number}","notifications_url":"https://api.github.com/repos/madvay/j2objc-gradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/madvay/j2objc-gradle/labels{/name}","releases_url":"https://api.github.com/repos/madvay/j2objc-gradle/releases{/id}","created_at":"2015-04-06T14:55:35Z","updated_at":"2015-07-14T08:50:32Z","pushed_at":"2015-07-16T00:56:32Z","git_url":"git://github.com/madvay/j2objc-gradle.git","ssh_url":"git@github.com:madvay/j2objc-gradle.git","clone_url":"https://github.com/madvay/j2objc-gradle.git","svn_url":"https://github.com/madvay/j2objc-gradle","homepage":"https://github.com/j2objc-contrib/j2objc-gradle","size":920,"stargazers_count":1,"watchers_count":1,"language":"Groovy","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"a7c22069f178341d81b7e7ba4042eb465b96e561","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-07-02T05:21:25Z","pushed_at":"2015-07-16T00:56:51Z","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":1422,"stargazers_count":35,"watchers_count":35,"language":"Groovy","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":48,"forks":9,"open_issues":48,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/284"},"html":{"href":"https://github.com/j2objc-contrib/j2objc-gradle/pull/284"},"issue":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/284"},"comments":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/284/comments"},"review_comments":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/pulls/284/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/284/commits"},"statuses":{"href":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/statuses/5b516434ee69d141a0900382f2b2f623a0ee9be8"}}}}