Skip to content

Instantly share code, notes, and snippets.

@danyaljj
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danyaljj/2b4f1c5b3b3d41d3c1b6 to your computer and use it in GitHub Desktop.
Save danyaljj/2b4f1c5b3b3d41d3c1b6 to your computer and use it in GitHub Desktop.
General notes on SBT
SBT
==============
* Default body:
name := "projecta"
version := "0.1.0-SNAPSHOT"
organization := "com.github.myname"
scalaVersion := "2.10.3"
* create package and put it in 'target': (not independant of other packages)
sbt package
* create package and put it in the ~/.ivy:
sbt publish-local
* independant package with all dependencies included:
Install the sbt-assembly plugin https://github.com/sbt/sbt-assembly/
and
sbt assembly
* Java options:
javaOptions += "-Xmx1G",
* Resolvers
resolvers += Resolver.mavenLocal
* Adding local 'lib' folder into dependencies
javaOptions ++= Seq("-Djava.library.path=lib")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment