From d8bd31ade7c6cc2ac494926c0d1652dde3af85f2 Mon Sep 17 00:00:00 2001 From: Mattias Reichel Date: Wed, 6 Dec 2023 13:39:41 +0100 Subject: [PATCH] Update the plugin usage reference (#877) * Update the plugin usage reference * Change asciidoc source-highlighter --- src/en/ref/Plug-ins.adoc | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/src/en/ref/Plug-ins.adoc b/src/en/ref/Plug-ins.adoc index 8c2ca7ac5e8..7ec50826f3f 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.