-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Refactor the Gradle build #7048
Conversation
This commit refactors the Gradle build to use the new Micronaut build plugins and move it to the new build template (which makes use of convention plugins). The build is obviously more complex than for external Micronaut modules, in particular because some modules are providing core functionalities but also depend on external Micronaut modules for tests (e.g Micronaut Test).
271f8b0
to
bf1fa81
Compare
@timyates please check this PR. I would like to move this forward for 3.4.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💪😎
ext { | ||
shadowJarEnabled = true | ||
plugins { | ||
id "io.micronaut.build.internal.convention-core-library" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is session a core library? I assume you added because shadowJarEnabled=true
but does it need to be a core library?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is simply remodeling what existed before, session
was treated differently like the other core-library
. I am not familiar enough with that module to say if it should be done differently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was added here: https://github.com/micronaut-projects/micronaut-core/pull/1486/files
buildSrc/src/main/groovy/io/micronaut/build/internal/ext/DefaultMicronautCoreExtension.java
Show resolved
Hide resolved
For clarity here are the BOM validation problems which are now detected: https://ge.micronaut.io/s/zphruxszgq6d4/console-log#L560-L579
|
I have added suppressions for the problems above and created issues in the respective problematic projects. |
Ok, after I merge it I will create a PR to remove the suppressions in a different PR. So that we don't forget. |
You'll have to keep the r2dbc one. |
Should not we keep the r2dbc suppression in the 2rdbc module instead? |
You need both: validation will fail in the r2dbc module, but it will also fail here since we check transitively. |
Kudos, SonarCloud Quality Gate passed! |
This commit refactors the Gradle build to use the new Micronaut
build plugins and move it to the new build template (which makes
use of convention plugins).
The build is obviously more complex than for external Micronaut
modules, in particular because some modules are providing core
functionalities but also depend on external Micronaut modules
for tests (e.g Micronaut Test).