Grails 在调试时排除渐变依赖项

Grails 在调试时排除渐变依赖项,grails,gradle,dependency-management,Grails,Gradle,Dependency Management,我正在使用Grails插件执行(war和调试)Grails 2.5.0项目。 似乎其中一个依赖项包含比我希望的更早的依赖项。I war时使用项目正确的版本,但在调试时使用较旧的依赖版本: dependencies { bootstrap "org.grails.plugins:tomcat:7.0.50" // No container is deployed by default, so add this // plugins for the compile step

我正在使用Grails插件执行(war和调试)Grails 2.5.0项目。 似乎其中一个依赖项包含比我希望的更早的依赖项。I war时使用项目正确的版本,但在调试时使用较旧的依赖版本:

dependencies {
    bootstrap "org.grails.plugins:tomcat:7.0.50" // No container is deployed by default, so add this
    // plugins for the compile step
    compile "joda-time:joda-time:2.3"
    compile("org.grails.plugins:spring-security-rest:1.5.2") {
        exclude module: 'xml-apis'
        exclude module: 'joda-time'
    }
    compile 'org.grails.plugins:cache:1.1.8'

    // plugins needed at runtime but not for compilation
    runtime ("org.grails.plugins:hibernate4:4.3.8.1") { exclude module: 'xml-apis' } // or ":hibernate:3.6.10.18"
    runtime "org.grails.plugins:database-migration:1.4.0"
}
所以在调试阶段,我有joda time 1.6,它与spring security rest:1.5.2一起提供。但当战争爆发时,joda时代的版本是2.3