How to include an external jar file into the jar with package?

前端 未结 7 2039
-上瘾入骨i
-上瘾入骨i 2020-12-08 02:26

My project has dependency on an external jar. I have created a directory lib and have copied the jar file into it. This is my build.sbt:

         


        
相关标签:
7条回答
  • 2020-12-08 03:03

    The trick is to figure out which lib directory to put your JAR in. You can do this by running the following in your sbt console: show unmanagedBase.

    If you don't see your project there, you can run show YOURPROJECT/unmanagedBase to find the correct lib path.

    0 讨论(0)
提交回复
热议问题