Details
-
Suggestion
-
Resolution: Fixed
-
None
Description
Problem:
Bamboo Clover Plugin allows to automatically integrate Clover with a Grails project. It uses a standard 'grails install-plugin' command to add Clover Grails Plugin to the project. This method is deprecated, however, as since Grails 1.3 it's possible to install plugin via dependency declaration in BuildConfig.groovy file.
Thus, for Clover-enabled projects a following warning is present in a log file:
Warning The install-plugin command is deprecated and may be removed from a future version of Grails. Plugin dependencies should be expressed in grails-app/conf/BuildConfig.groovy. See http://grails.org/doc/2.2.x/guide/conf.html#pluginDependencies.
Possible solution:
Instead of 'grails install-plugin' modify content of the BuildConfig.groovy file on the fly and add 'clover' plugin dependency.
Traps:
- grails 1.2.x and older versions do not support this new way
- you're modifying the original source ... keep a copy of original file?
It has a low priority as 'install-plugin' is still supported but just deprecated.