2013-08-26 21 views
1

在我BuildConfig.groovy我有如何在Grails中排除依賴關係?

dependencies { 

    compile 'org.package:abc:2.0.0' 

} 

農行XYZ的依賴。我怎樣才能排除xyz?

我試圖

dependencies { 

    compile 'org.package:abc:2.0.0' { 
    exclude: 'xyz' 
    } 

} 

但這不起作用。

回答

4

這是排除,不排除...

compile('org.package:abc:2.0.0') { 
    excludes 'xyz' 
    }