Replies: 8 comments 8 replies
-
I like the idea but I think we are late for this change in Micronaut Framework 4. I think we should consider how this change impacts default environment. I think what we could do is generate every new app in starter with :
|
Beta Was this translation helpful? Give feedback.
-
@micronaut-projects/core-developers thoughts? |
Beta Was this translation helpful? Give feedback.
-
Adding the ApplicationContextConfigurer would always run in the dev environment though wouldn't it, unless something was done when the code was pushed to production? One confusion I sometimes see is we have |
Beta Was this translation helpful? Give feedback.
-
True, Micronaut Gradle plugin has a "development" mode already. When you do gradle run, it uses the |
Beta Was this translation helpful? Give feedback.
-
this should be implemented in the plugins if it is to be implemented. |
Beta Was this translation helpful? Give feedback.
-
Having something like Maybe we should have a different environment variable, say One of the issues with having the build plugins do magic is that this won't work unless delegating to the IDE, which is the default for Gradle + Intellij IDEA CE, but not for Maven nor IDEA Ultimate. |
Beta Was this translation helpful? Give feedback.
-
Exactly. Until now it was not as easy to happen because cloud environment detection was turned on and in most cases a cloud env would be detected and thus the default env was not being used. |
Beta Was this translation helpful? Give feedback.
-
So, our build plugins are already capable of injecting dev dependencies (e.g
In Maven you'd have this in |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions