Latest API Docs: https://grails.github.io/grails-gradle-plugin/latest/api/
Below are the plugins that are provided by the grails-gradle-plugin dependency.
buildscript {
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
}
}
Todo: Add the docs
Todo: Add the docs
Todo: Add the docs
Todo: Add the docs
Below are typical Gradle plugin applies that certain types of projects should expect. These should be automatically added of you when using grails create-app
and grails create-plugin
commands. However, if you wish to enhance or change the scope of your plugin or project you may have to change (add or remove) a grails gradle plugin.
A project created with a typical grails create-app --profile=web
apply plugin: "org.grails.grails-web"
apply plugin: "org.grails.grails-gsp"
A project created with a typical grails create-app --profile=web-api
apply plugin: "org.grails.grails-web"
A project created with a typical grails create-app --profile=web-micro
There is no plugins used here as this project type creates a stand alone runnable groovy application and no build.gradle
file.
A project created with a typical grails create-plugin --profile=web-plugin
apply plugin: "org.grails.grails-plugin"
apply plugin: "org.grails.grails-gsp"
A project created with a typical grails create-plugin --profile=web-api
. Note: No org.grails.grails-plugin include
apply plugin: "org.grails.grails-web"
A project created with a typical grails create-plugin --profile=plugin
.
apply plugin: "org.grails.grails-plugin"
A project created with a typical grails create-plugin --profile=web-micro
There is no plugins used here as this project type creates a stand alone runnable groovy application and no `build.gradle`` file.