Micronaut 2.0 Milestone 2 - Massive Maven Improvements

MICRONAUT 2.0 MILESTONE 2 RELEASED

By Graeme Rocher, OCI Grails & Micronaut Product Lead and Principal Software Engineer

APRIL 2, 2020


Just two weeks since the last milestone, the Micronaut team at Object Computing is pleased to announce Micronaut 2.0 Milestone 2.

Beyond the features already introduced in Milestone 1, the second milestone features the following three additional themes.

A love letter to Maven users

The Micronaut team loves Gradle; hence it's the default build system for new Micronaut projects. However, Maven usage is huge, and Maven is great too, so we wanted to make sure Maven users have a great experience with Micronaut, as well.

We have always supported building with Maven by using mn create-app myapp --build maven to create your application. Now however, thanks to the great work of Alvaro Sanchez-Mariscal of the Micronaut team, we are happy to introduce the Micronaut Maven Plugin, as well as new parent POMs for Maven projects.

With the Micronaut Maven plugin, you can run your Micronaut application and have changes instantaneously reloaded:

In addition to this awesomeness, a new micronaut-parent POM is published that users can include as a parent to any pom.xml file. This will automatically configure the Micronaut Maven plugin.

New Reactive Modules

Thanks to the Reactive Streams specification, there are a whole bunch of reactive libraries out there that work well with Micronaut. In addition, newer libraries are coming out all the time, including RxJava 3.

Micronaut 2.0 comes with new reactive modules that you can add to your classpath that allow you to choose between RxJava 1, RxJava 2, RxJava 3, and Reactor.

Significant Startup Improvements

We have continued to make improvements that make Micronaut more and more useful for serverless use cases. For example, you now have the ability to eagerly initialize beans on AWS Lambda, and we've improved Micronaut's overall startup time by between 20% and 30% over Micronaut 1.x

MORE TO COME

Micronaut 2.0 Milestone 2 follows hot in the heels of M1, and we're not done yet! Expect big improvements to Micronaut's serverless support in the next milestone before we start with the RC stage.

Thanks to the community for your great contributions so far; your input helped make this release happen. Enjoy!

secret