How do I install authentication plugins in grails 3.0.1?

I want to install the authentication plugin on a grails project, so I used the command grails install-plugin spring-security-core

, but it gives an error:

Error Command not found install-plugin 
Did you mean: install or list-plugins or plugin-info?. 
Grails version : 3.0.1  

      

I'm really new to grails, so I can't figure out how to install the plugin in it.

+3


source to share


2 answers


In grail 3 install-pugin

is removed. Now it is enough to add the dependency in your projects build.gradle

to install the desired plugin. In your case, to install the plugin, spring-security-core

add the dependency as follows:

dependencies {
   ...
   compile "org.grails.plugins:spring-security-core:3.0.4"
   ...
}

      



And then just run grails run-app

and make sure the plugin is installed.

+4


source


install-plugin

is now deprecated, see Grails documentation here for the correct way to install pluggins



https://grails.github.io/grails-doc/latest/guide/plugins.html

+1


source







All Articles