Grails: is it possible to eliminate the dependence of a plugin on another plugin?

I have a grails 2.2.2 application and I decided to use the cache-ehcache plugin.

The problem is that this plugin depends on the cache plugin with version 1.0.0, and my application has a version of cache version 1.0.1 (I think this is the default value for grails 2.2.2). Therefore, when I try to compile an application, I always get the same message:

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] 

I have to answer this question every time I compile the application. I tried to change the dependency of the project plugin to cache-1.0.1 in the .grails/2.2.2/my_project/plugins/cache-ehcache-1.0.0/dependencies.groovy and plugin.xml . This does not seem to work.

I know that it is possible to exclude bans from the dependencies of the plugin, but is it possible to exclude another plugin?

I tried to change the BuildConfig.groovy section to:

 plugins { ... compile(':cache-ehcache:1.0.0') { excludes ":cache:1.0.0"} } 

but it still does not work. I get the same question every time I compile the application.

+4
source share
1 answer

Use as

 plugins { ... compile(':cache-ehcache:1.0.0') { excludes "cache"} } 
+12
source

All Articles