Skip to content

Instantly share code, notes, and snippets.

@bilal-fazlani
Created November 27, 2023 04:34
Show Gist options
  • Select an option

  • Save bilal-fazlani/d541566c59d85d2960385cda1770b390 to your computer and use it in GitHub Desktop.

Select an option

Save bilal-fazlani/d541566c59d85d2960385cda1770b390 to your computer and use it in GitHub Desktop.

Revisions

  1. bilal-fazlani created this gist Nov 27, 2023.
    20 changes: 20 additions & 0 deletions build.sbt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    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 !
    }