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

前端 未结 7 2037
-上瘾入骨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 02:58

    Add this line your build.sbt and clean & compile your project.

    project/libs, where project is the root directory of your project, put your jars in libs folder.

    unmanagedBase <<= baseDirectory { base => base / "libs" }
    

提交回复
热议问题