Created
November 27, 2023 04:34
-
-
Save bilal-fazlani/d541566c59d85d2960385cda1770b390 to your computer and use it in GitHub Desktop.
set coursier bootstrap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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