Skip to content

Commit

Permalink
Update the plugin usage reference (#877)
Browse files Browse the repository at this point in the history
* Update the plugin usage reference

* Change asciidoc source-highlighter
  • Loading branch information
matrei committed Dec 6, 2023
1 parent 557cf14 commit d8bd31a
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions src/en/ref/Plug-ins.adoc
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.

0 comments on commit d8bd31a

Please sign in to comment.