{"action":"created","comment":{"url":"https://api.github.com/repos/sbt/website/pulls/comments/94286537","pull_request_review_id":14815544,"id":94286537,"diff_hunk":"@@ -10,63 +10,64 @@ Hello, World\n \n This page assumes you've [installed sbt][Setup].\n \n-### Create a project directory with source code\n+### sbt new command\n \n-A valid sbt project can be a directory containing a single source file.\n-Try creating a directory `hello` with a file `hw.scala`, containing the\n-following:\n+If you're using sbt 0.13.13 or later, you can use sbt `new` command to quickly setup a simple Hello world build. Type the following command to the terminal.\n \n-```scala\n-object Hi {\n-  def main(args: Array[String]) = println(\"Hi!\")\n-}\n ```\n+\\$ sbt new sbt/scala-seed.g8\n+....\n+Minimum Scala build.\n+\n+name [My Something Project]: hello\n+\n+Template applied in ./hello\n+```\n+\n+When prompted for the project name, type `hello`.\n+\n+This will create a new project under a directory named `hello`.\n \n-Now from inside the `hello` directory, start sbt and type `run` at the sbt\n-interactive console. On Linux or OS X the commands might look like this:\n+### Running your app\n+\n+Now from inside the `hello` directory, start `sbt` and type `run` at the sbt shell. On Linux or OS X the commands might look like this:\n \n ```\n-\\$ mkdir hello\n \\$ cd hello\n-\\$ echo 'object Hi { def main(args: Array[String]) = println(\"Hi!\") }' > hw.scala\n \\$ sbt\n ...\n > run\n ...\n-Hi!\n+[info] Compiling 1 Scala source to /xxx/hello/target/scala-2.12/classes...\n+[info] Running example.Hello\n+hello\n ```\n \n-In this case, sbt works purely by convention. sbt will find the\n-following automatically:\n-\n--   Sources in the base directory\n--   Sources in `src/main/scala` or `src/main/java`\n--   Tests in `src/test/scala` or `src/test/java`\n--   Data files in `src/main/resources` or `src/test/resources`\n--   jars in `lib`\n-\n-By default, sbt will build projects with the same version of Scala used\n-to run sbt itself.\n+To leave sbt shell, type `exit` or use Ctrl+D (Unix) or Ctrl+Z\n+(Windows).\n \n-You can run the project with `sbt run` or enter the [Scala\n-REPL](http://www.scala-lang.org/node/2097) with `sbt console`. Invoking `sbt console`\n-sets up your project's classpath so you can try out live Scala examples\n-based on your project's code.\n+```\n+> exit\n+```\n \n ### Build definition\n \n-Most projects will need some manual setup. Basic build settings go in a\n-file called `build.sbt`, located in the project's base directory.\n-\n+Basic build settings go in a file called `build.sbt`, located in the project's base directory.\n For example, if your project is in the directory `hello`, in\n `hello/build.sbt` you might write:\n \n ```scala\n-lazy val root = (project in file(\".\")).\n-  settings(\n-    name := \"hello\",\n-    version := \"1.0\",\n-    scalaVersion := \"$example_scala_version$\"\n+import Dependencies._\n+\n+lazy val root = (project in file(\".\"))","path":"src/reference/00-Getting-Started/02-Hello.md","position":98,"original_position":89,"commit_id":"4c358f028b7b2503ca4b82920f2125b5eabb28ec","original_commit_id":"3b99844c8e975093c32f3c12417f4dbaaebe8b56","user":{"login":"dwijnand","id":344610,"avatar_url":"https://avatars.githubusercontent.com/u/344610?v=3","gravatar_id":"","url":"https://api.github.com/users/dwijnand","html_url":"https://github.com/dwijnand","followers_url":"https://api.github.com/users/dwijnand/followers","following_url":"https://api.github.com/users/dwijnand/following{/other_user}","gists_url":"https://api.github.com/users/dwijnand/gists{/gist_id}","starred_url":"https://api.github.com/users/dwijnand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwijnand/subscriptions","organizations_url":"https://api.github.com/users/dwijnand/orgs","repos_url":"https://api.github.com/users/dwijnand/repos","events_url":"https://api.github.com/users/dwijnand/events{/privacy}","received_events_url":"https://api.github.com/users/dwijnand/received_events","type":"User","site_admin":false},"body":"I'm more of a DRY and conventions-over-configuration advocate.","created_at":"2017-01-01T17:10:27Z","updated_at":"2017-01-01T17:10:27Z","html_url":"https://github.com/sbt/website/pull/306#discussion_r94286537","pull_request_url":"https://api.github.com/repos/sbt/website/pulls/306","_links":{"self":{"href":"https://api.github.com/repos/sbt/website/pulls/comments/94286537"},"html":{"href":"https://github.com/sbt/website/pull/306#discussion_r94286537"},"pull_request":{"href":"https://api.github.com/repos/sbt/website/pulls/306"}}},"pull_request":{"url":"https://api.github.com/repos/sbt/website/pulls/306","id":99728099,"html_url":"https://github.com/sbt/website/pull/306","diff_url":"https://github.com/sbt/website/pull/306.diff","patch_url":"https://github.com/sbt/website/pull/306.patch","issue_url":"https://api.github.com/repos/sbt/website/issues/306","number":306,"state":"open","locked":false,"title":"Update sbt Getting Started guide","user":{"login":"eed3si9n","id":184683,"avatar_url":"https://avatars.githubusercontent.com/u/184683?v=3","gravatar_id":"","url":"https://api.github.com/users/eed3si9n","html_url":"https://github.com/eed3si9n","followers_url":"https://api.github.com/users/eed3si9n/followers","following_url":"https://api.github.com/users/eed3si9n/following{/other_user}","gists_url":"https://api.github.com/users/eed3si9n/gists{/gist_id}","starred_url":"https://api.github.com/users/eed3si9n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eed3si9n/subscriptions","organizations_url":"https://api.github.com/users/eed3si9n/orgs","repos_url":"https://api.github.com/users/eed3si9n/repos","events_url":"https://api.github.com/users/eed3si9n/events{/privacy}","received_events_url":"https://api.github.com/users/eed3si9n/received_events","type":"User","site_admin":false},"body":"This is a proposal to update the Getting Started guide a bit.\r\nI've tried to remove obsolete information and things that mostly sbt core devs care about (over-emphasis on immutability and the return types of DSL expressions); and to update some terminology (sbt shell as opposed to \"the interactive mode\").\r\n\r\nI've also added a new page that tries to explain WHY we need build.sbt not just *how* and *what*: https://github.com/sbt/website/blob/3b99844c8e975093c32f3c12417f4dbaaebe8b56/src/reference/00-Getting-Started/07A-Task-Graph.md\r\n\r\nLet me know if I'm moving towards the right direction.\r\n\r\n/cc @dwijnand, @pfn, @heathermiller, @tpolecat, @lihaoyi","created_at":"2016-12-30T07:22:31Z","updated_at":"2017-01-01T17:10:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70521d8a87deb2d0080cae480475e607315ef8f8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sbt/website/pulls/306/commits","review_comments_url":"https://api.github.com/repos/sbt/website/pulls/306/comments","review_comment_url":"https://api.github.com/repos/sbt/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sbt/website/issues/306/comments","statuses_url":"https://api.github.com/repos/sbt/website/statuses/4c358f028b7b2503ca4b82920f2125b5eabb28ec","head":{"label":"sbt:wip/docs","ref":"wip/docs","sha":"4c358f028b7b2503ca4b82920f2125b5eabb28ec","user":{"login":"sbt","id":1158012,"avatar_url":"https://avatars.githubusercontent.com/u/1158012?v=3","gravatar_id":"","url":"https://api.github.com/users/sbt","html_url":"https://github.com/sbt","followers_url":"https://api.github.com/users/sbt/followers","following_url":"https://api.github.com/users/sbt/following{/other_user}","gists_url":"https://api.github.com/users/sbt/gists{/gist_id}","starred_url":"https://api.github.com/users/sbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbt/subscriptions","organizations_url":"https://api.github.com/users/sbt/orgs","repos_url":"https://api.github.com/users/sbt/repos","events_url":"https://api.github.com/users/sbt/events{/privacy}","received_events_url":"https://api.github.com/users/sbt/received_events","type":"Organization","site_admin":false},"repo":{"id":19356551,"name":"website","full_name":"sbt/website","owner":{"login":"sbt","id":1158012,"avatar_url":"https://avatars.githubusercontent.com/u/1158012?v=3","gravatar_id":"","url":"https://api.github.com/users/sbt","html_url":"https://github.com/sbt","followers_url":"https://api.github.com/users/sbt/followers","following_url":"https://api.github.com/users/sbt/following{/other_user}","gists_url":"https://api.github.com/users/sbt/gists{/gist_id}","starred_url":"https://api.github.com/users/sbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbt/subscriptions","organizations_url":"https://api.github.com/users/sbt/orgs","repos_url":"https://api.github.com/users/sbt/repos","events_url":"https://api.github.com/users/sbt/events{/privacy}","received_events_url":"https://api.github.com/users/sbt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sbt/website","description":"The source for scala-sbt.org","fork":false,"url":"https://api.github.com/repos/sbt/website","forks_url":"https://api.github.com/repos/sbt/website/forks","keys_url":"https://api.github.com/repos/sbt/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbt/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbt/website/teams","hooks_url":"https://api.github.com/repos/sbt/website/hooks","issue_events_url":"https://api.github.com/repos/sbt/website/issues/events{/number}","events_url":"https://api.github.com/repos/sbt/website/events","assignees_url":"https://api.github.com/repos/sbt/website/assignees{/user}","branches_url":"https://api.github.com/repos/sbt/website/branches{/branch}","tags_url":"https://api.github.com/repos/sbt/website/tags","blobs_url":"https://api.github.com/repos/sbt/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbt/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbt/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbt/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbt/website/statuses/{sha}","languages_url":"https://api.github.com/repos/sbt/website/languages","stargazers_url":"https://api.github.com/repos/sbt/website/stargazers","contributors_url":"https://api.github.com/repos/sbt/website/contributors","subscribers_url":"https://api.github.com/repos/sbt/website/subscribers","subscription_url":"https://api.github.com/repos/sbt/website/subscription","commits_url":"https://api.github.com/repos/sbt/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbt/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbt/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbt/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbt/website/contents/{+path}","compare_url":"https://api.github.com/repos/sbt/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbt/website/merges","archive_url":"https://api.github.com/repos/sbt/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbt/website/downloads","issues_url":"https://api.github.com/repos/sbt/website/issues{/number}","pulls_url":"https://api.github.com/repos/sbt/website/pulls{/number}","milestones_url":"https://api.github.com/repos/sbt/website/milestones{/number}","notifications_url":"https://api.github.com/repos/sbt/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbt/website/labels{/name}","releases_url":"https://api.github.com/repos/sbt/website/releases{/id}","deployments_url":"https://api.github.com/repos/sbt/website/deployments","created_at":"2014-05-01T20:17:33Z","updated_at":"2016-12-31T15:52:50Z","pushed_at":"2016-12-30T11:36:06Z","git_url":"git://github.com/sbt/website.git","ssh_url":"git@github.com:sbt/website.git","clone_url":"https://github.com/sbt/website.git","svn_url":"https://github.com/sbt/website","homepage":"http://www.scala-sbt.org/","size":5283,"stargazers_count":29,"watchers_count":29,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":126,"mirror_url":null,"open_issues_count":39,"forks":126,"open_issues":39,"watchers":29,"default_branch":"master"}},"base":{"label":"sbt:master","ref":"master","sha":"c30a4356599e72b5f67d274ba699e75ff603478b","user":{"login":"sbt","id":1158012,"avatar_url":"https://avatars.githubusercontent.com/u/1158012?v=3","gravatar_id":"","url":"https://api.github.com/users/sbt","html_url":"https://github.com/sbt","followers_url":"https://api.github.com/users/sbt/followers","following_url":"https://api.github.com/users/sbt/following{/other_user}","gists_url":"https://api.github.com/users/sbt/gists{/gist_id}","starred_url":"https://api.github.com/users/sbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbt/subscriptions","organizations_url":"https://api.github.com/users/sbt/orgs","repos_url":"https://api.github.com/users/sbt/repos","events_url":"https://api.github.com/users/sbt/events{/privacy}","received_events_url":"https://api.github.com/users/sbt/received_events","type":"Organization","site_admin":false},"repo":{"id":19356551,"name":"website","full_name":"sbt/website","owner":{"login":"sbt","id":1158012,"avatar_url":"https://avatars.githubusercontent.com/u/1158012?v=3","gravatar_id":"","url":"https://api.github.com/users/sbt","html_url":"https://github.com/sbt","followers_url":"https://api.github.com/users/sbt/followers","following_url":"https://api.github.com/users/sbt/following{/other_user}","gists_url":"https://api.github.com/users/sbt/gists{/gist_id}","starred_url":"https://api.github.com/users/sbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbt/subscriptions","organizations_url":"https://api.github.com/users/sbt/orgs","repos_url":"https://api.github.com/users/sbt/repos","events_url":"https://api.github.com/users/sbt/events{/privacy}","received_events_url":"https://api.github.com/users/sbt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sbt/website","description":"The source for scala-sbt.org","fork":false,"url":"https://api.github.com/repos/sbt/website","forks_url":"https://api.github.com/repos/sbt/website/forks","keys_url":"https://api.github.com/repos/sbt/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbt/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbt/website/teams","hooks_url":"https://api.github.com/repos/sbt/website/hooks","issue_events_url":"https://api.github.com/repos/sbt/website/issues/events{/number}","events_url":"https://api.github.com/repos/sbt/website/events","assignees_url":"https://api.github.com/repos/sbt/website/assignees{/user}","branches_url":"https://api.github.com/repos/sbt/website/branches{/branch}","tags_url":"https://api.github.com/repos/sbt/website/tags","blobs_url":"https://api.github.com/repos/sbt/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbt/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbt/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbt/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbt/website/statuses/{sha}","languages_url":"https://api.github.com/repos/sbt/website/languages","stargazers_url":"https://api.github.com/repos/sbt/website/stargazers","contributors_url":"https://api.github.com/repos/sbt/website/contributors","subscribers_url":"https://api.github.com/repos/sbt/website/subscribers","subscription_url":"https://api.github.com/repos/sbt/website/subscription","commits_url":"https://api.github.com/repos/sbt/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbt/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbt/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbt/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbt/website/contents/{+path}","compare_url":"https://api.github.com/repos/sbt/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbt/website/merges","archive_url":"https://api.github.com/repos/sbt/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbt/website/downloads","issues_url":"https://api.github.com/repos/sbt/website/issues{/number}","pulls_url":"https://api.github.com/repos/sbt/website/pulls{/number}","milestones_url":"https://api.github.com/repos/sbt/website/milestones{/number}","notifications_url":"https://api.github.com/repos/sbt/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbt/website/labels{/name}","releases_url":"https://api.github.com/repos/sbt/website/releases{/id}","deployments_url":"https://api.github.com/repos/sbt/website/deployments","created_at":"2014-05-01T20:17:33Z","updated_at":"2016-12-31T15:52:50Z","pushed_at":"2016-12-30T11:36:06Z","git_url":"git://github.com/sbt/website.git","ssh_url":"git@github.com:sbt/website.git","clone_url":"https://github.com/sbt/website.git","svn_url":"https://github.com/sbt/website","homepage":"http://www.scala-sbt.org/","size":5283,"stargazers_count":29,"watchers_count":29,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":126,"mirror_url":null,"open_issues_count":39,"forks":126,"open_issues":39,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sbt/website/pulls/306"},"html":{"href":"https://github.com/sbt/website/pull/306"},"issue":{"href":"https://api.github.com/repos/sbt/website/issues/306"},"comments":{"href":"https://api.github.com/repos/sbt/website/issues/306/comments"},"review_comments":{"href":"https://api.github.com/repos/sbt/website/pulls/306/comments"},"review_comment":{"href":"https://api.github.com/repos/sbt/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sbt/website/pulls/306/commits"},"statuses":{"href":"https://api.github.com/repos/sbt/website/statuses/4c358f028b7b2503ca4b82920f2125b5eabb28ec"}}}}
{"actor":{"display_login":"dwijnand"}}