|
1 | | -## grails-gradle-plugin |
| 1 | +Grails Gradle Plugins |
| 2 | +======== |
2 | 3 |
|
| 4 | +Below are the plugins that are provided by the grails-gradle-plugin dependency. |
| 5 | + |
| 6 | +``` |
| 7 | +buildscript { |
| 8 | + dependencies { |
| 9 | + classpath "org.grails:grails-gradle-plugin:$grailsVersion" |
| 10 | + } |
| 11 | +} |
| 12 | +``` |
| 13 | + |
| 14 | +grails-core |
| 15 | +--------- |
| 16 | +_Todo_: Add the docs |
| 17 | + |
| 18 | +grails-doc |
| 19 | +--------- |
| 20 | +_Todo_: Add the docs |
| 21 | + |
| 22 | +grails-gsp |
| 23 | +--------- |
| 24 | +* Configure GSP Compiling Task |
| 25 | + |
| 26 | +grails-plugin-publish |
| 27 | +--------- |
| 28 | +_Todo_: Add the docs |
| 29 | + |
| 30 | +grails-plugin |
| 31 | +--------- |
| 32 | +* Configure Ast Sources |
| 33 | +* Configure Project Name And Version AST Metadata |
| 34 | +* Configure Plugin Resources |
| 35 | +* Configure Plugin Jar Task |
| 36 | +* Configure Sources Jar Task |
| 37 | + |
| 38 | +grails-profile |
| 39 | +--------- |
| 40 | +_Todo_: Add the docs |
| 41 | + |
| 42 | +grails-web |
| 43 | +--------- |
| 44 | +* Adds web specific extensions |
| 45 | + |
| 46 | + |
| 47 | +Typical Project Type Gradle Plugin Includes |
| 48 | +======== |
| 49 | +Below are typical gradile 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. |
| 50 | + |
| 51 | +Create App |
| 52 | +---- |
| 53 | + |
| 54 | +<h4>Grails Web Project</h4> |
| 55 | +----- |
| 56 | +A project created with a typical `grails create-app --profile=web` |
| 57 | + |
| 58 | +``` |
| 59 | +apply plugin: "org.grails.grails-web" |
| 60 | +apply plugin: "org.grails.grails-gsp" |
| 61 | +``` |
| 62 | + |
| 63 | +<h4>Grails Web API Project</h4> |
| 64 | +---- |
| 65 | +A project created with a typical `grails create-app --profile=web-api` |
| 66 | + |
| 67 | +``` |
| 68 | +apply plugin: "org.grails.grails-web" |
| 69 | +``` |
| 70 | + |
| 71 | +<h4>Grails Web Micro Project</h4> |
| 72 | + |
| 73 | +A project created with a typical `grails create-app --profile=web-micro` |
| 74 | + |
| 75 | +There is no plugins used here as this project type creates a stand alone runnable groovy application and no `build.gradle` file. |
| 76 | + |
| 77 | + |
| 78 | +Create Plugin |
| 79 | +--- |
| 80 | + |
| 81 | +<h4>Grails Plugin Web Project</h4> |
| 82 | +A project created with a typical `grails create-plugin --profile=web-plugin` |
| 83 | + |
| 84 | +``` |
| 85 | +apply plugin: "org.grails.grails-plugin" |
| 86 | +apply plugin: "org.grails.grails-gsp" |
| 87 | +``` |
| 88 | + |
| 89 | +<h4>Grails Plugin Web API Project</h4> |
| 90 | +A project created with a typical `grails create-plugin --profile=web-api`. _Note: No org.grails.grails-plugin include_ |
| 91 | + |
| 92 | +``` |
| 93 | +apply plugin: "org.grails.grails-web" |
| 94 | +``` |
| 95 | + |
| 96 | + |
| 97 | +<h4>Grails Plugin Web Plugin Project</h4> |
| 98 | +A project created with a typical `grails create-plugin --profile=plugin`. |
| 99 | + |
| 100 | +``` |
| 101 | +apply plugin: "org.grails.grails-plugin" |
| 102 | +``` |
| 103 | + |
| 104 | +<h4>Grails Plugin Web Micro Project</h4> |
| 105 | + |
| 106 | +A project created with a typical `grails create-plugin --profile=web-micro` |
| 107 | + |
| 108 | +There is no plugins used here as this project type creates a stand alone runnable groovy application and no `build.gradle`` file. |
0 commit comments