如何获取sbt将我的代码所依赖的所有jar文件收集到一个地方? [英] how do I get sbt to gather all the jar files my code depends on into one place?

查看:64
本文介绍了如何获取sbt将我的代码所依赖的所有jar文件收集到一个地方?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是的问题的新手.我希望它将所有依赖项jar文件以及我的jar文件放到一个位置. SBT将运行该应用程序,但是我周围散布着各种依赖关系,并且一个.ivy文件夹包含了我的jar文件间接依赖的所有内容.

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 scattered around and an .ivy folder full of things my jar file depends on indirectly.

那么是否有一个简单的命令将它们全部复制到一个地方,以便我可以将其分发到另一台计算机上?

So Is there a simple command to copy them all into a single place so I can distribute it to another machine?

推荐答案

您可以使用许多插件: sbt-assembly sbt-proguard

There are many plugins you can use: sbt-assembly, sbt-proguard, sbt-onejar, xitrum-package etc.

请参见 SBT插件列表.

这篇关于如何获取sbt将我的代码所依赖的所有jar文件收集到一个地方?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆