-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the plugin usage reference (#877)
* Update the plugin usage reference * Change asciidoc source-highlighter
- Loading branch information
Showing
1 changed file
with
6 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,18 @@ | ||
|
||
=== plugin Usage | ||
|
||
=== Plugin Usage | ||
|
||
A plugin provides additional capability to the Grails runtime and is created with the link:../Command%20Line/create-plugin.html[create-plugin] command: | ||
|
||
[source,groovy] | ||
---- | ||
grails create-plugin simple | ||
---- | ||
|
||
This will create a plugin project which can then be packaged with link:../Command%20Line/package-plugin.html[package-plugin]: | ||
|
||
[source,groovy] | ||
[source,console] | ||
---- | ||
grails package-plugin | ||
grails create-plugin myplugin | ||
---- | ||
|
||
To install the plugin to your local Maven repository you can use the `install` command: | ||
This will create a plugin project which can then be packaged as a JAR file (build/libs/myplugin-0.1.jar) using the `jar` gradle task: | ||
|
||
[source,groovy] | ||
[source,console] | ||
---- | ||
grails install | ||
./gradlew jar | ||
---- | ||
|
||
Refer to the user guide topic on link:{guidePath}/plugins.html[plugins] for more information. |