We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With the latest micronaut gradle plugin manual configuration for incremental compilation is not required anymore. We should remove it.
This (we already have) and replaces
micronaut { runtime "netty" testRuntime "junit5" processing { incremental true annotations "<%= packageName %>.*" } }
tasks.withType(JavaCompile) { options.encoding = "UTF-8" options.compilerArgs.addAll([ '-parameters', // enables incremental compilation '-Amicronaut.processing.incremental=true', '-Amicronaut.processing.annotations=<%= packageName %>.*', "-Amicronaut.processing.group=$project.group", "-Amicronaut.processing.module=$project.name", ]) }
Furthermore the custom config for continuous compilation we have in the dev profile can be removed I think (need to make sure the profiles are set correctly so maybe we need to keep it or parts of it). See what the application plugin sets: https://github.com/micronaut-projects/micronaut-gradle-plugin/blob/ce80195d88e78cbf2d69d3fe49fb491545aa3a94/src/main/java/io/micronaut/gradle/MicronautApplicationPlugin.java#L116
**tasks.withType(JavaExec) { classpath += configurations.developmentOnly jvmArgs('-XX:TieredStopAtLevel=1', '-Dcom.sun.management.jmxremote') if (System.getProperty("micronaut.environments")) { jvmArgs += '-Dmicronaut.environments=' + profiles + ',' + System.getProperty("micronaut.environments") } else { jvmArgs += '-Dmicronaut.environments=' + profiles } if (gradle.startParameter.continuous) { systemProperties( 'micronaut.io.watch.restart':'true', 'micronaut.io.watch.enabled':'true', "micronaut.io.watch.paths":"src/main" ) } }**
Try not to move far away from what https://micronaut.io/launch creates
None.
The text was updated successfully, but these errors were encountered:
@atomfrede Are you still interested in fixing this?
Sorry, something went wrong.
atomfrede
No branches or pull requests
Overview of the feature request
With the latest micronaut gradle plugin manual configuration for incremental compilation is not required anymore. We should remove it.
This (we already have) and replaces
Furthermore the custom config for continuous compilation we have in the dev profile can be removed I think (need to make sure the profiles are set correctly so maybe we need to keep it or parts of it). See what the application plugin sets: https://github.com/micronaut-projects/micronaut-gradle-plugin/blob/ce80195d88e78cbf2d69d3fe49fb491545aa3a94/src/main/java/io/micronaut/gradle/MicronautApplicationPlugin.java#L116
Motivation for or Use Case
Try not to move far away from what https://micronaut.io/launch creates
Related issues or PR
None.
The text was updated successfully, but these errors were encountered: