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.
如何使用构建器默认加载到本地 maven 存储库中的 jar,而不是创建新的(和重复的)工件任务/依赖项?
例如,如果要创建 scala 或 groovy 应用程序构建器将自动分别下载 scala 或 groovy jar。是否可以将这些(默认)jar 包含或合并到应用程序中,而不是创建新的工件?
我认为这是不可能的,也不可能一步到位,简单的方法。我建议您在 Buildr 的开发列表中与我们交谈,我们可能会为此创建一个增强功能。
对于您想要依赖的每个库,您通常可以使用 grep 代码来查找我们定义所依赖的默认 jar 的位置。
对于您提到的示例,以下是检索默认 jar 的默认方法:
对于 Groovy: Buildr::Groovy::Groovyc.dependencies 对于 Scala: Buildr::Scala::Scalac.dependencies
我希望这会有所帮助。