开发者

Use Local Maven Repository

开发者 https://www.devze.com 2023-03-15 10:44 出处:网络
开发者_JS百科How can I use jars that buildr loads by default into the local maven repo, rather than creating new (and repetitive) artifact tasks/dependencies?
开发者_JS百科

How can I use jars that buildr loads by default into the local maven repo, rather than creating new (and repetitive) artifact tasks/dependencies?

For example, if were creating a scala or groovy application buildr would automatically download the scala or groovy jars respectively. Is it possible to include or merge these (default) jars into an application rather than creating a new artifact?


I think that is not possible or doable in a one step, easy way. I recommend you talk with us on the dev list of Buildr and we can probably create an enhancement for that.

For each library you would like to depend on, you usual can grep the code to find where we define the default jar we depend on.

For the example you mention, here are the default method to retrieve the default jars:

For Groovy: Buildr::Groovy::Groovyc.dependencies
For Scala: Buildr::Scala::Scalac.dependencies

I hope that helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消