Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-13404

Use BuildConfig's DSL to install Clover plugin

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    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.

      Attachments

        Issue Links

          Activity

            People

              mparfianowicz Marek Parfianowicz
              mark@atlassian.com MarkC
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: