Pma*_*Pma 5 grails grails-plugin
我有一个grails 2.2.2应用程序,并决定使用cache-ehcache插件.
问题是这个插件依赖于版本1.0.0的缓存插件,我的应用程序有缓存插件版本1.0.1(我认为它是grails 2.2.2的默认值).因此,当我尝试编译应用程序时,我总是得到相同的消息:
You currently already have a version of the plugin installed [cache-1.0.1]. Do you want to update to [cache-1.0.0]? [y,n]
Run Code Online (Sandbox Code Playgroud)
每次编译应用程序时我都要回答这个问题.我试图将项目插件依赖项更改为cache-1.0.1 in .grails/2.2.2/my_project/plugins/cache-ehcache-1.0.0/dependencies.groovy和plugin.xmlfiles.它似乎不起作用.
我知道可以从插件依赖项中排除jar,但是可以排除另一个插件吗?
我尝试将部分更改BuildConfig.groovy为:
plugins {
...
compile(':cache-ehcache:1.0.0') { excludes ":cache:1.0.0"}
}
Run Code Online (Sandbox Code Playgroud)
但它似乎仍然没有奏效.每次编译应用程序时都会得到同样的问题.
dma*_*tro 13
用于
plugins {
...
compile(':cache-ehcache:1.0.0') { excludes "cache"}
}
Run Code Online (Sandbox Code Playgroud)