Micronaut® Blog

Announcing Micronaut 2.0

By Graeme Rocher & James Kleeh

June 26, 2020

Tags: #release

Today, the Micronaut team at Object Computing, Inc. (OCI) is proud to announce the general release of Micronaut 2.0!

This release reflects the culmination of more than 6 months of extraordinary work from the Micronaut community. We have expanded our native image support, increased the reactive library support modules, improved our threading model, and added features that give you more service deployment options. With Micronaut 2, you can deploy nearly anywhere. From Servlet to Serverless, and practically anything in-between.

There's a lot to discover in Micronaut 2.0.  For a full list of the new features, please see the What's New guide

Here are some highlights of what's new in Micronaut 2.

MICRONAUT LAUNCH

In Micronaut 2.0, we have completely rewritten the Micronaut CLI using Micronaut itself and simultaneously launched Micronaut Launch, a new tool for creating Micronaut applications that is built on the new CLI.

The new website and CLI are so cool, we wrote a whole blog post to introduce them!

JDK 14, GROOVY 3

Micronaut 2.0 now supports Java 14 and also adds support for Groovy 3.

PERFORMANCE IMPROVEMENTS

Micronaut is intensely focused on performance, and we are always looking to improve startup time, memory consumption, and other performance metrics. Micronaut 2.0 comes with improvements in all metrics, with startup times improving by 20% on average.

IMPROVED SERVERLESS SUPPORT

Micronaut 2.0 introduces support for writing applications that can be deployed to Google's upcoming Cloud Function support for Java.

In addition to Google Cloud Function, we have also added support for Azure Function using the same approach. Check out the Micronaut Azure Function documentation for more information.

Micronaut 2.0's AWS module has also received a significant upgrade with GraalVM Native Image support for AWS SDK 2 and more.

MICRONAUT MAVEN PLUGIN

Micronaut 2.0 features a brand new Maven plugin.

SUPPORT FOR HTTP/2

Support for HTTP/2 has been added and can be optionally enabled in both the Netty-based HTTP server and client.

SERVLET SUPPORT

Micronaut can now go places that weren't possible before, including your favorite Servlet container! Embedded servers for Jetty, Tomcat, and Undertow are included.

GRAALVM IMPROVEMENTS

We are continually improving our support for the very popular project, GraalVM. In Micronaut 2.0, we have introduced support for automatic configuration for static resources, JDBC drivers, Hibernate, Flyway, AWS SDK 2, and other areas.

GRADLE IMPROVEMENTS

Micronaut 2.0 has been upgraded to Gradle 6.5 and further improved our compile-time processors to be more compatible with incremental annotation processing. Java and Kotlin users should experience faster build times.

SECURITY MODULE IMPROVEMENTS

The Micronaut Security module has undergone significant changes to improve the extensibility of the API, as well as to provide new features.

UPGRADING

For those upgrading from Micronaut 1, see the upgrading to Micronaut 2.0 section in our documentation to understand what has changed and how it may impact your application. There are several key changes that everyone upgrading should understand. The most impactful is the change to the default thread selection strategy. We have written a blog post that goes into detail about that change.

The Road To MICRONAUT 2

Working toward today's release, we published 3 milestones, each including a substantial portion of Micronaut 2's features.  We invite you to revisit the path we took here by reviewing our milestone announcements:

The Future

The items listed above certainly are not the entirety of the new features, improvements, and bug fixes included in this release. For a more detailed description of what you can do with Micronaut 2, please see our documentation.

If you haven't given Micronaut a try yet, now is a great time to get started! We can't wait to see what you build.

Please report any issues or ideas for improvement to our Github issue tracker. We are very excited for Micronaut 2 and the future of Micronaut!

Special thanks to all the tireless contributors to Micronaut who made this release happen and the excellent feedback from the community.