Skip to content

Commit

Permalink
added separate installation guides for Grails 3 and Grails 4
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Dec 14, 2020
1 parent 7af36b9 commit c5d06f0
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions docs/guide/src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,24 @@ image::https://coveralls.io/repos/github/{project-slug}/badge.svg?branch=master[

= Micronaut Grails

== Installation
== Grails 4

=== Installation

[source,indent=0,role="primary",subs='verbatim,attributes']
.Gradle
----
compileOnly 'com.agorapulse:micronaut-grails:{project-version}'
compile 'com.agorapulse:micronaut-grails:{project-version}'
// for Tomcat deployment replace
// compile 'org.grails:grails-web-boot'
// with
compile 'com.agorapulse:micronaut-grails-web-boot:{project-version}'
----

TIP: If you plan to reuse same library for Micronaut and Grails, you can declare the dependency as `compileOnly`.

== Usage

=== Grails 4
=== Usage

Micronaut Grails library helps to use Micronaut beans in the Grails 4 application or any other Spring application.
The main additional feature is the ability to do more customisation to the Micronaut context such as adding a package for scanning.
Expand Down Expand Up @@ -79,7 +84,19 @@ to `INFO` to see the deprecation details.
|===


=== Grails 3
== Grails 3

=== Installation

[source,indent=0,role="primary",subs='verbatim,attributes']
.Gradle
----
compileOnly 'com.agorapulse:micronaut-grails:{project-version}'
----

TIP: If you plan to reuse same library for Micronaut and Grails, you can declare the dependency as `compileOnly`.

=== Usage

Micronaut Grails library helps to use Micronaut beans in the Grails 3 application or any other Spring application.
There are three additional features which cannot be found the official https://micronaut-projects.github.io/micronaut-spring/latest/guide/[Spring support for Micronaut]:
Expand Down

0 comments on commit c5d06f0

Please sign in to comment.