Skip to content

Instantly share code, notes, and snippets.

@lazyval
Created July 19, 2017 08:05
Show Gist options
  • Save lazyval/f48d2ffb830562834191c545c341c53c to your computer and use it in GitHub Desktop.
Save lazyval/f48d2ffb830562834191c545c341c53c to your computer and use it in GitHub Desktop.
hello scala!
object Hello extends App {
println("hello scala!")
}
@lazyval
Copy link
Author

lazyval commented Jul 19, 2017

this is the example that even such a bare repository IS a valid SBT project

checking this out and running sbt run is enough:

etc :: /tmp/hello » sbt run
WARN: No sbt.version set in project/build.properties, base directory: /private/tmp/hello
[warn] Executing in batch mode.
[warn]   For better performance, hit [ENTER] to switch to interactive mode, or
[warn]   consider launching sbt without any commands, or explicitly passing 'shell'
[info] Loading global plugins from /Users/omnomnom/.sbt/0.13/plugins
[info] Set current project to hello (in build file:/private/tmp/hello/)
[info] Updating {file:/private/tmp/hello/}hello...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Compiling 1 Scala source to /private/tmp/hello/target/scala-2.10/classes...
[info] Running Hello
hello scala!
[success] Total time: 3 s, completed Jul 19, 2017 11:04:33 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment