Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install Grails plugin with Eclipse (Grails 2.3.1)

i have Grails 2.3.1.

when i try to install new plugins , i have the following console message :

Since Grails 2.3, it is no longer possible to install plugins using the install-plugin command.
Plugins must be declared in the grails-app/conf/BuildConfig.groovy file.
Example:
grails.project.dependency.resolution = {
   ...
   plugins {
      compile ":console:1.2"
   }
}
like image 529
Abdennour TOUMI Avatar asked Jan 28 '26 03:01

Abdennour TOUMI


1 Answers

Since Grails 2.3, it is no longer possible to install plugins using the install-plugin command.

Plugins must be declared in the grails-app/conf/BuildConfig.groovy file.

Instead of using install-plugin (or an IDE feature like you're using that runs install-plugin for you), add a dependency in the plugins section in BuildConfig.groovy:

plugins {
   compile ":console:1.2"
}

install-plugin adds entries in application.properties but that approach isn't configurable enough, so we deprecated install-plugin in 2.2 and removed it in 2.3. As you can see, when you run the script, it does nothing but does give you the code that you need to add yourself.

like image 70
Burt Beckwith Avatar answered Jan 30 '26 20:01

Burt Beckwith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!