Chapter 1. Features

In 21.0.0.3, we have a milestone update to the MicroProfile feature with a major version increase to 4.0. This includes updates to all 8 MicroProfile components: Config, Fault Tolerance, Health, JWT RBAC, Metrics, Open API, Open Tracing and Rest Client. To utilize these updated components, run your app with the latest version of Open Liberty.

If you’re feeling curious about what’s coming soon in Open Liberty, take a look at the 'beta status' features in the latest development builds, for example LDAP connection support for Kerberos authentication is now available in the Open Liberty 21.0.0.4-beta release.

In Open Liberty 21.0.0.3:

View the list of fixed bugs in 21.0.0.3.

1.1. Run your apps using 21.0.0.3

If you’re using Maven, here are the coordinates:

<dependency>
    <groupId>io.openliberty</groupId>
    <artifactId>openliberty-runtime</artifactId>
    <version>21.0.0.3</version>
    <type>zip</type>
</dependency>

Or for Gradle:

dependencies {
    libertyRuntime group: 'io.openliberty', name: 'openliberty-runtime', version: '[21.0.0.3,)'
}

Or if you’re using Docker:

FROM open-liberty

1.1.1. MicroProfile 4.0 Support

MicroProfile 4.0 is the first release under the Working Group model and MicroProfile Specification Process and alligns with Jakarta EE 8. This major version update includes updates to the following 8 MicroProfile components:

  • MicroProfile Config 2.0
  • MicroProfile Fault Tolerance 3.0
  • MicroProfile Health 3.0
  • MicroProfile JWT Authentication 1.2
  • MicroProfile Metrics 3.0
  • MicroProfile OpenAPI 2.0
  • MicroProfile OpenTracing 2.0
  • MicroProfile Rest Client 2.0

As this is such a large update, separate blog posts have been written for both MicroProfile 4.0 and a few of the individual components. A deep-dive into MicroProfile 4.0 can be found in the post linked below with further component-specific posts due to release over the coming weeks:

A Deep Dive into MicroProfile 4.0 with Open Liberty

1.1.1.1. Making use of MicroProfile 4.0

To make use of MicroProfile 4.0 you must add the feature to both pom.xml and server.xml:

Add the following to your server.xml:

<server>
  <featureManager>
    <feature>microProfile-4.0</feature>
  </featureManager>
</server>

And add the following to your pom.xml:

<dependency>
    <groupId>org.eclipse.microprofile</groupId>
    <artifactId>microprofile</artifactId>
    <version>4.0.1</version>
    <type>pom</type>
    <scope>provided</scope>
</dependency>