Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fredc0088
Created August 6, 2017 09:22
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 fredc0088/9a4f3099298649cf1f98713effafa3ab to your computer and use it in GitHub Desktop.
Save fredc0088/9a4f3099298649cf1f98713effafa3ab to your computer and use it in GitHub Desktop.
build.sbt
name := "myapp"
organization := "com.myapp"
version := "1.0-SNAPSHOT"
// Enables publishing to maven repo
publishMavenStyle := true
// Do not append Scala versions to the generated artifacts
crossPaths := false
// This forbids including Scala related libraries into the dependency
autoScalaLibrary := false
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core
// libraryDependencies += "com.fasterxml.jackson.core" % "jackson-core" % "2.9.0" withSources() withJavadoc()
libraryDependencies += "com.google.code.gson" % "gson" % "2.2.4" withSources() withJavadoc()
unmanagedClasspath in Compile <++= baseDirectory map { base =>
val lib = base / "lib"
Seq(
lib / "jackson-core-2.9.0.jar",
lib / "gson-2.2.4.jar"
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment