Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将源文件添加到 scala jar。jar 是用 Jenkins 每晚生成的,使用 sbt 编译和 sbt-assembly 来制作 jar。知道如何让 Jenkins 自动在 jar 中添加源文件吗?
您可以通过将此行添加到您的 build.sbt 文件中,使用 SBT 将您的源文件添加到您的 .jar 中:
unmanagedResourceDirectories in Compile <+= baseDirectory( _ / "src" )
有关更多信息,请参阅: