khan
khan

Reputation: 33

The install-plugin command is deprecated in Grails

i am new in grails..i try to install plugin using the command "install-plugin easygrid:1.5.0" in run. i got the warning as follow

"| 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. | Resolving plugin easygrid:1.5.0. Please wait... | Error resolving plugin [name:1.5.0, group:easygrid, version:latest.integration]. Plugin not found. | Error Plugin not found for name [easygrid:1.5.0] and version [not specified]"

how to install-plugins in run or using BuildConfig.grooovy in grails?

thanks in advance

Upvotes: 2

Views: 3908

Answers (1)

Gregor Petrin
Gregor Petrin

Reputation: 2931

Look at the Dependency section on the Grails' plugin page, it should be located near the top of the page right under the author & licence sections. Copy the text from there into your BuildConfig.groovy file into the plugins block and (re)start Grails.

Your BuildConfig could look like this:

grails.servlet.version = "3.0" // Change depending on target container compliance (2.5 or 3.0)
grails.project.class.dir = "target/classes"

//..some other configuration


grails.project.dependency.resolution = {

//..some other configuration and blocks

    plugins {
        //.. other plugins
        compile ":easygrid:1.6.9"
    }
}

Upvotes: 3

Related Questions