Skip to content

Instantly share code, notes, and snippets.

@2m
Last active August 29, 2015 14:05
Show Gist options
  • Save 2m/3dfab73e1a4bba8a9e29 to your computer and use it in GitHub Desktop.
Save 2m/3dfab73e1a4bba8a9e29 to your computer and use it in GitHub Desktop.
Parsisiųsk SBT Launcher iš http://www.scala-sbt.org/download.html ir pasidaryk, kad `sbt` komanda būtų path'e.
Tada susikurk katalogą naujam projektui ir ten įmesk `build.sbt`
Java sourcus dėk į src/main/java
Pasileisk su `sbt`
Tada ten kompiliuok su `compile`
Paleisk su `run`
libraryDependencies := Seq(
"redis.clients" % "jedis" % "2.4.2",
"junit" % "junit" % "4.11"
)
// place this in src/main/java/
public class Main {
public static void main(String[] args) {
System.out.println("Hello world");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment