{"action":"created","comment":{"url":"https://api.github.com/repos/scala-native/sbt-cross-project/pulls/comments/89308861","pull_request_review_id":9854311,"id":89308861,"diff_hunk":"@@ -1,2 +1,115 @@\n-# sbt-cross-project\n+<a href=\"https://travis-ci.org/scala-native/sbt-cross-project\" target=\"_blank\" rel=\"nofollow\">\n+  <img src=\"https://travis-ci.org/scala-native/sbt-cross-project.png?branch=master\" alt=\"Build Status\"></img>\n+</a>\n+\n+<h1>sbt-cross-project</h1>\n+\n Cross-platform compilation support for sbt.\n+\n+<h2>Installation</h2>\n+\n+<h3>Cross-Compiling Scala.Js, JVM and Native</h3>\n+\n+In `project/plugins.sbt`:\n+\n+```scala\n+addSbtPlugin(\"org.scala-js\" % \"sbt-scalajs\" % \"0.6.13\")\n+\n+resolvers += Resolver.sonatypeRepo(\"snapshots\")                         // (1)\n+addSbtPlugin(\"org.scala-native\" % \"sbt-cross\"         % \"0.1-SNAPSHOT\") // (2)\n+addSbtPlugin(\"org.scala-native\" % \"sbt-scalajs-cross\" % \"0.1-SNAPSHOT\") // (3)\n+addSbtPlugin(\"org.scala-native\" % \"sbt-native\"        % \"0.1-SNAPSHOT\") // (4)\n+```\n+\n+In `build.sbt`:\n+\n+```scala\n+// (5) shadow sbt-scalajs until Scala.js 1.0.0 is released\n+import sbtcross.{crossProject, CrossType}\n+\n+val sharedSettings = Seq(scalaVersion := \"2.11.8\") // Scala Native only supports 2.11\n+\n+lazy val bar =\n+  // (6) select supported platforms\n+  crossProject(JSPlatform, JVMPlatform, NativePlatform) \n+    .crossType(CrossType.Pure) // [Pure, Full, Dummy], default: CrossType.Full\n+    .settings(sharedSettings)\n+    .jsSettings(/* ... */) // defined in sbt-scalajs-cross\n+    .jvmSettings(/* ... */)\n+    // (7) configure Scala-Native settings\n+    .nativeSettings(/* ... */) // defined in sbt-native\n+\n+lazy val barJS     = bar.js\n+lazy val barJVM    = bar.jvm\n+lazy val barNATIVE = bar.native\n+\n+lazy val foo = \n+  crossProject(JSPlatform, JVMPlatform, NativePlatform)\n+    .settings(\n+      // %%% now include Scala Native. It applies to all selected platforms\n+      libraryDependencies += \"org.example\" %%% \"foo\" % \"1.2.3\"\n+    )\n+\n+lazy val fooJS = foo.js\n+lazy val fooJVM = foo.jvm\n+lazy val fooNATIVE = foo.native\n+```\n+\n+<h3>Cross-Compiling JVM and Native</h3>\n+\n+In `project/plugins.sbt`:\n+\n+```scala\n+resolvers += Resolver.sonatypeRepo(\"snapshots\")\n+addSbtPlugin(\"org.scala-native\" % \"sbt-cross\" % \"0.1-SNAPSHOT\") // (1)\n+addSbtPlugin(\"org.scala-native\" % \"sbt-native\" % \"0.1-SNAPSHOT\") // (2)\n+```\n+\n+In `build.sbt`:\n+\n+```scala\n+val sharedSettings = Seq(scalaVersion := \"2.11.8\") // Scala Native only supports 2.11\n+\n+lazy val bar =\n+  // (3) select supported platforms\n+  crossProject(JVMPlatform, NativePlatform) \n+    .settings(sharedSettings)\n+    // (4) configure JVM settings\n+    .jvmSettings(/* ... */)\n+    // (5) configure Scala-Native settings\n+    .nativeSettings(/* ... */) // defined in sbt-native\n+\n+lazy val barJVM    = bar.jvm\n+lazy val barNATIVE = bar.native\n+```\n+\n+<h3>Migration from Scala.Js cross</h3>","path":"README.md","position":87,"original_position":87,"commit_id":"cd463273efac9a9afd37085747ab9f1689e852e7","original_commit_id":"a35e3634400d157c5d5299c62bf155c4ce8ff80a","user":{"login":"MasseGuillaume","id":921490,"avatar_url":"https://avatars.githubusercontent.com/u/921490?v=3","gravatar_id":"","url":"https://api.github.com/users/MasseGuillaume","html_url":"https://github.com/MasseGuillaume","followers_url":"https://api.github.com/users/MasseGuillaume/followers","following_url":"https://api.github.com/users/MasseGuillaume/following{/other_user}","gists_url":"https://api.github.com/users/MasseGuillaume/gists{/gist_id}","starred_url":"https://api.github.com/users/MasseGuillaume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasseGuillaume/subscriptions","organizations_url":"https://api.github.com/users/MasseGuillaume/orgs","repos_url":"https://api.github.com/users/MasseGuillaume/repos","events_url":"https://api.github.com/users/MasseGuillaume/events{/privacy}","received_events_url":"https://api.github.com/users/MasseGuillaume/received_events","type":"User","site_admin":false},"body":"I propose \"Migration from Scala.js' crossProject\" since there is only one crossProject in Scala.js","created_at":"2016-11-23T12:47:29Z","updated_at":"2016-11-23T12:47:30Z","html_url":"https://github.com/scala-native/sbt-cross-project/pull/4#discussion_r89308861","pull_request_url":"https://api.github.com/repos/scala-native/sbt-cross-project/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/scala-native/sbt-cross-project/pulls/comments/89308861"},"html":{"href":"https://github.com/scala-native/sbt-cross-project/pull/4#discussion_r89308861"},"pull_request":{"href":"https://api.github.com/repos/scala-native/sbt-cross-project/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/scala-native/sbt-cross-project/pulls/4","id":94198628,"html_url":"https://github.com/scala-native/sbt-cross-project/pull/4","diff_url":"https://github.com/scala-native/sbt-cross-project/pull/4.diff","patch_url":"https://github.com/scala-native/sbt-cross-project/pull/4.patch","issue_url":"https://api.github.com/repos/scala-native/sbt-cross-project/issues/4","number":4,"state":"open","locked":false,"title":"crossProject implementation","user":{"login":"MasseGuillaume","id":921490,"avatar_url":"https://avatars.githubusercontent.com/u/921490?v=3","gravatar_id":"","url":"https://api.github.com/users/MasseGuillaume","html_url":"https://github.com/MasseGuillaume","followers_url":"https://api.github.com/users/MasseGuillaume/followers","following_url":"https://api.github.com/users/MasseGuillaume/following{/other_user}","gists_url":"https://api.github.com/users/MasseGuillaume/gists{/gist_id}","starred_url":"https://api.github.com/users/MasseGuillaume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasseGuillaume/subscriptions","organizations_url":"https://api.github.com/users/MasseGuillaume/orgs","repos_url":"https://api.github.com/users/MasseGuillaume/repos","events_url":"https://api.github.com/users/MasseGuillaume/events{/privacy}","received_events_url":"https://api.github.com/users/MasseGuillaume/received_events","type":"User","site_admin":false},"body":"https://github.com/scala-native/sbt-cross-project/pull/3","created_at":"2016-11-17T16:14:39Z","updated_at":"2016-11-23T12:47:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63a09fc05bb4421b27fcab7131b3efb284e0592b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/scala-native/sbt-cross-project/pulls/4/commits","review_comments_url":"https://api.github.com/repos/scala-native/sbt-cross-project/pulls/4/comments","review_comment_url":"https://api.github.com/repos/scala-native/sbt-cross-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scala-native/sbt-cross-project/issues/4/comments","statuses_url":"https://api.github.com/repos/scala-native/sbt-cross-project/statuses/cd463273efac9a9afd37085747ab9f1689e852e7","head":{"label":"MasseGuillaume:simple2","ref":"simple2","sha":"cd463273efac9a9afd37085747ab9f1689e852e7","user":{"login":"MasseGuillaume","id":921490,"avatar_url":"https://avatars.githubusercontent.com/u/921490?v=3","gravatar_id":"","url":"https://api.github.com/users/MasseGuillaume","html_url":"https://github.com/MasseGuillaume","followers_url":"https://api.github.com/users/MasseGuillaume/followers","following_url":"https://api.github.com/users/MasseGuillaume/following{/other_user}","gists_url":"https://api.github.com/users/MasseGuillaume/gists{/gist_id}","starred_url":"https://api.github.com/users/MasseGuillaume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasseGuillaume/subscriptions","organizations_url":"https://api.github.com/users/MasseGuillaume/orgs","repos_url":"https://api.github.com/users/MasseGuillaume/repos","events_url":"https://api.github.com/users/MasseGuillaume/events{/privacy}","received_events_url":"https://api.github.com/users/MasseGuillaume/received_events","type":"User","site_admin":false},"repo":{"id":72551270,"name":"sbt-cross-project","full_name":"MasseGuillaume/sbt-cross-project","owner":{"login":"MasseGuillaume","id":921490,"avatar_url":"https://avatars.githubusercontent.com/u/921490?v=3","gravatar_id":"","url":"https://api.github.com/users/MasseGuillaume","html_url":"https://github.com/MasseGuillaume","followers_url":"https://api.github.com/users/MasseGuillaume/followers","following_url":"https://api.github.com/users/MasseGuillaume/following{/other_user}","gists_url":"https://api.github.com/users/MasseGuillaume/gists{/gist_id}","starred_url":"https://api.github.com/users/MasseGuillaume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasseGuillaume/subscriptions","organizations_url":"https://api.github.com/users/MasseGuillaume/orgs","repos_url":"https://api.github.com/users/MasseGuillaume/repos","events_url":"https://api.github.com/users/MasseGuillaume/events{/privacy}","received_events_url":"https://api.github.com/users/MasseGuillaume/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MasseGuillaume/sbt-cross-project","description":"Cross-platform compilation support for sbt.","fork":true,"url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project","forks_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/forks","keys_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/teams","hooks_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/hooks","issue_events_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/issues/events{/number}","events_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/events","assignees_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/assignees{/user}","branches_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/branches{/branch}","tags_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/tags","blobs_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/statuses/{sha}","languages_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/languages","stargazers_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/stargazers","contributors_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/contributors","subscribers_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/subscribers","subscription_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/subscription","commits_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/contents/{+path}","compare_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/merges","archive_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/downloads","issues_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/issues{/number}","pulls_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/pulls{/number}","milestones_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/milestones{/number}","notifications_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/labels{/name}","releases_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/releases{/id}","deployments_url":"https://api.github.com/repos/MasseGuillaume/sbt-cross-project/deployments","created_at":"2016-11-01T15:47:59Z","updated_at":"2016-11-01T15:48:00Z","pushed_at":"2016-11-23T10:32:51Z","git_url":"git://github.com/MasseGuillaume/sbt-cross-project.git","ssh_url":"git@github.com:MasseGuillaume/sbt-cross-project.git","clone_url":"https://github.com/MasseGuillaume/sbt-cross-project.git","svn_url":"https://github.com/MasseGuillaume/sbt-cross-project","homepage":null,"size":42,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"scala-native:master","ref":"master","sha":"4c7056b1071de901c5a912abe1c385cff496ea55","user":{"login":"scala-native","id":17545605,"avatar_url":"https://avatars.githubusercontent.com/u/17545605?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-native","html_url":"https://github.com/scala-native","followers_url":"https://api.github.com/users/scala-native/followers","following_url":"https://api.github.com/users/scala-native/following{/other_user}","gists_url":"https://api.github.com/users/scala-native/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-native/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-native/subscriptions","organizations_url":"https://api.github.com/users/scala-native/orgs","repos_url":"https://api.github.com/users/scala-native/repos","events_url":"https://api.github.com/users/scala-native/events{/privacy}","received_events_url":"https://api.github.com/users/scala-native/received_events","type":"Organization","site_admin":false},"repo":{"id":59822325,"name":"sbt-cross-project","full_name":"scala-native/sbt-cross-project","owner":{"login":"scala-native","id":17545605,"avatar_url":"https://avatars.githubusercontent.com/u/17545605?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-native","html_url":"https://github.com/scala-native","followers_url":"https://api.github.com/users/scala-native/followers","following_url":"https://api.github.com/users/scala-native/following{/other_user}","gists_url":"https://api.github.com/users/scala-native/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-native/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-native/subscriptions","organizations_url":"https://api.github.com/users/scala-native/orgs","repos_url":"https://api.github.com/users/scala-native/repos","events_url":"https://api.github.com/users/scala-native/events{/privacy}","received_events_url":"https://api.github.com/users/scala-native/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scala-native/sbt-cross-project","description":"Cross-platform compilation support for sbt.","fork":false,"url":"https://api.github.com/repos/scala-native/sbt-cross-project","forks_url":"https://api.github.com/repos/scala-native/sbt-cross-project/forks","keys_url":"https://api.github.com/repos/scala-native/sbt-cross-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scala-native/sbt-cross-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scala-native/sbt-cross-project/teams","hooks_url":"https://api.github.com/repos/scala-native/sbt-cross-project/hooks","issue_events_url":"https://api.github.com/repos/scala-native/sbt-cross-project/issues/events{/number}","events_url":"https://api.github.com/repos/scala-native/sbt-cross-project/events","assignees_url":"https://api.github.com/repos/scala-native/sbt-cross-project/assignees{/user}","branches_url":"https://api.github.com/repos/scala-native/sbt-cross-project/branches{/branch}","tags_url":"https://api.github.com/repos/scala-native/sbt-cross-project/tags","blobs_url":"https://api.github.com/repos/scala-native/sbt-cross-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scala-native/sbt-cross-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scala-native/sbt-cross-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/scala-native/sbt-cross-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scala-native/sbt-cross-project/statuses/{sha}","languages_url":"https://api.github.com/repos/scala-native/sbt-cross-project/languages","stargazers_url":"https://api.github.com/repos/scala-native/sbt-cross-project/stargazers","contributors_url":"https://api.github.com/repos/scala-native/sbt-cross-project/contributors","subscribers_url":"https://api.github.com/repos/scala-native/sbt-cross-project/subscribers","subscription_url":"https://api.github.com/repos/scala-native/sbt-cross-project/subscription","commits_url":"https://api.github.com/repos/scala-native/sbt-cross-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/scala-native/sbt-cross-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/scala-native/sbt-cross-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/scala-native/sbt-cross-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/scala-native/sbt-cross-project/contents/{+path}","compare_url":"https://api.github.com/repos/scala-native/sbt-cross-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scala-native/sbt-cross-project/merges","archive_url":"https://api.github.com/repos/scala-native/sbt-cross-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scala-native/sbt-cross-project/downloads","issues_url":"https://api.github.com/repos/scala-native/sbt-cross-project/issues{/number}","pulls_url":"https://api.github.com/repos/scala-native/sbt-cross-project/pulls{/number}","milestones_url":"https://api.github.com/repos/scala-native/sbt-cross-project/milestones{/number}","notifications_url":"https://api.github.com/repos/scala-native/sbt-cross-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scala-native/sbt-cross-project/labels{/name}","releases_url":"https://api.github.com/repos/scala-native/sbt-cross-project/releases{/id}","deployments_url":"https://api.github.com/repos/scala-native/sbt-cross-project/deployments","created_at":"2016-05-27T09:22:04Z","updated_at":"2016-10-24T16:52:27Z","pushed_at":"2016-11-23T10:32:52Z","git_url":"git://github.com/scala-native/sbt-cross-project.git","ssh_url":"git@github.com:scala-native/sbt-cross-project.git","clone_url":"https://github.com/scala-native/sbt-cross-project.git","svn_url":"https://github.com/scala-native/sbt-cross-project","homepage":null,"size":15,"stargazers_count":10,"watchers_count":10,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scala-native/sbt-cross-project/pulls/4"},"html":{"href":"https://github.com/scala-native/sbt-cross-project/pull/4"},"issue":{"href":"https://api.github.com/repos/scala-native/sbt-cross-project/issues/4"},"comments":{"href":"https://api.github.com/repos/scala-native/sbt-cross-project/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/scala-native/sbt-cross-project/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/scala-native/sbt-cross-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scala-native/sbt-cross-project/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/scala-native/sbt-cross-project/statuses/cd463273efac9a9afd37085747ab9f1689e852e7"}}}}
{"actor":{"display_login":"MasseGuillaume"}}