문제

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"
   }
}
도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top