diff --git a/src/en/ref/Plug-ins.adoc b/src/en/ref/Plug-ins.adoc index 8c2ca7ac5e..7ec50826f3 100644 --- a/src/en/ref/Plug-ins.adoc +++ b/src/en/ref/Plug-ins.adoc @@ -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.