Skip to content

Instantly share code, notes, and snippets.

@bilal-fazlani
Created November 27, 2023 04:34
Show Gist options
  • Save bilal-fazlani/d541566c59d85d2960385cda1770b390 to your computer and use it in GitHub Desktop.
Save bilal-fazlani/d541566c59d85d2960385cda1770b390 to your computer and use it in GitHub Desktop.
set coursier bootstrap
import scala.sys.process._
lazy val bootstrap = taskKey[Unit]("Create a fat jar file")
bootstrap := {
// this first publishes the project to ivy local
publishLocal.value
val process = Process(
Seq(
"coursier",
"bootstrap",
"--standalone",
s"${organization.value}:${name.value}_3:${version.value}",
"-f",
"-o",
s"${name.value}.jar"
)
)
process !
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment