-
-
Notifications
You must be signed in to change notification settings - Fork 971
feature - #14017 - add back Micronaut support to Grails 7 with optional plugin #14953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
09fafca
fix: update type to remove CompileDynamic
jdaugherty d1e9e7b
chore: update minimum grails version
jdaugherty 7e6cb83
ci: re-enable sitemesh3 tests
jdaugherty 9d73131
Make scripts executable
jdaugherty 27d9284
feature: #14017 - add micronaut feature to forge
jdaugherty e0de1ac
feature: #14017 - grails gradle plugin should enforce micronaut versi…
jdaugherty b1e928d
doc: #14017 - document how to integrate Micronaut with Grails
jdaugherty 15db168
feedback - dependency & styling clean ups
jdaugherty 7d094d4
chore: simplify rat config
jdaugherty a370d5c
14017 - fix - do not use bean replacement for jspViewResolver & ensur…
jdaugherty 0197fe0
14017 - refactor - do not set the application context on beans that a…
jdaugherty 56b5974
#14017 - fix - bean syntax
jdaugherty 1df83c4
14017 - fix - switch to constructor based bean wiring
jdaugherty f7c73ee
14017 - cleanup - remove dependency that is no longer included
jdaugherty f64899b
14017 - styling - clean up styling from original 6.x code
jdaugherty 51db407
14017 - fix - move domain class to auto configuration to fix dependen…
jdaugherty e2e0a85
14017 - cleanup - move i18n to be included by default and no longer r…
jdaugherty 490ff68
14017 - cleanup - remove commented code
jdaugherty 73410db
14017 - license - fix group for project licensing configuration
jdaugherty 6507fc8
14017 - styling - feedback
jdaugherty 08826bf
14017 - doc - add documentation for why parameters must always be ena…
jdaugherty a6c3581
14017 - feedback - styling
jdaugherty File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ import org.grails.plugin.cache.GrailsCacheManager | |
| @Slf4j | ||
| class CacheGrailsPlugin extends Plugin { | ||
|
|
||
| def grailsVersion = '7.0.0 > *' | ||
| def grailsVersion = '7.0.0-SNAPSHOT > *' | ||
| def observe = ['controllers', 'services'] | ||
| def loadAfter = ['controllers', 'services'] | ||
| def authorEmail = '[email protected]' | ||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| //// | ||
| Licensed to the Apache Software Foundation (ASF) under one | ||
| or more contributor license agreements. See the NOTICE file | ||
| distributed with this work for additional information | ||
| regarding copyright ownership. The ASF licenses this file | ||
| to you under the Apache License, Version 2.0 (the | ||
| "License"); you may not use this file except in compliance | ||
| with the License. You may obtain a copy of the License at | ||
|
|
||
| https://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, | ||
| software distributed under the License is distributed on an | ||
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| KIND, either express or implied. See the License for the | ||
| specific language governing permissions and limitations | ||
| under the License. | ||
| //// | ||
|
|
||
| === Micronaut Integration | ||
|
|
||
| Grails supports using the Micronaut framework via the `grails-micronaut` plugin. The `grails-micronaut` plugin uses the https://micronaut-projects.github.io/micronaut-spring/latest/guide/#springBootStarter[Micronaut Spring Boot Starter] so that both the Micronaut Application Context & Grails Application Context exist side by side. | ||
|
|
||
| To enable Micronaut in your Grails application, two steps must be completed. First, the `grails-micronaut` plugin needs added to the build file. Second, the property `micronautPlatformVersion` needs set to your desired version. Only Micronaut 4.9.2 or higher is supported for Grails. | ||
jdaugherty marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| Here's an example build file: | ||
|
|
||
| [source,groovy] | ||
| .build.gradle | ||
| ---- | ||
| dependencies { | ||
| implementation 'org.apache.grails:grails-micronaut' | ||
| } | ||
| ---- | ||
|
|
||
| Here's an example `gradle.properties` file: | ||
|
|
||
| [source,properties] | ||
| .gradle.properties | ||
| ---- | ||
| micronautPlatformVersion=4.9.2 | ||
| ---- | ||
|
|
||
| When the `grails-micronaut` plugin is present, the Grails Gradle plugin will automatically apply the required annotation processors to your project & ensure the specified Micronaut version is used. | ||
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.