how do I get sbt to gather all the jar files my code depends on into one place?

后端 未结 7 800
栀梦
栀梦 2020-12-24 12:47

I\'m new to sbt. I want it to put all the dependency jar files as well as my jar file into one place. SBT will run the app, but I\'ve got various dependencies s

7条回答
  •  轮回少年
    2020-12-24 13:24

    The SBT docs have a list of "One Jar Plugins":

    • sbt-assembly: https://github.com/sbt/sbt-assembly
    • xsbt-proguard-plugin: https://github.com/adamw/xsbt-proguard-plugin
    • sbt-deploy: https://github.com/reaktor/sbt-deploy
    • sbt-appbundle (os x standalone): https://github.com/sbt/sbt-appbundle
    • sbt-onejar (Packages your project using One-JAR™): https://github.com/sbt/sbt-onejar

提交回复
热议问题