Skip to content

Instantly share code, notes, and snippets.

@ChristopherDavenport
Created June 15, 2020 15:40
Show Gist options
  • Save ChristopherDavenport/7e49e746e3eb3b3cfc42c8887b462f52 to your computer and use it in GitHub Desktop.
Save ChristopherDavenport/7e49e746e3eb3b3cfc42c8887b462f52 to your computer and use it in GitHub Desktop.
Basic Packaging For SBT Projects - Underscores in filenames indicate directories
scalaVersion := "2.13.1"
enablePlugins(JavaAppPackaging)
maintainer := "foo@blah.com"
dockerBaseImage := "java:14"
// convention is plugins.sbt
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.7.3")
object foo {
def main(args: Array[String]): Unit = {
println("Hello World!")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment