See documentation and the Grails plugin page for further information.
For Grails 3.3+, use the latest 3.x version. For Grails 4+, use the latest 4.x version.
If you cannot retrieve the the plugin from the Grails repos, you may need to use the following (see https://bintray.com/bluesliverx/grails-plugins/spring-security-oauth2-provider for available versions):
repositories {
...
maven { url "http://dl.bintray.com/bluesliverx/grails-plugins" }
}
dependencies {
...
compile 'org.grails.plugins:spring-security-oauth2-provider:<myversion>'
}