【发布时间】:2014-12-02 20:50:02
【问题描述】:
使用 Grails 2.4.3,我如何排除在 build 范围内定义的依赖项?
示例
Grails 与库spock-core-0.7-groovy-2.0.jar 捆绑在一起;添加标准全局依赖排除时:
...
grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits('global') {
excludes 'spock-core'
}
...
Spock 被排除在所有依赖范围之外,build 范围除外。
【问题讨论】:
标签: grails build dependencies