Achieve your goals faster with our ✨NEW✨ Personalized Learning Plan - select your content, set your own timeline and we will help you stay on track. Log in and Head to My Learning to get started! Learn more

Offered By: OpenLiberty

Creating a multi-module application with Gradle

You will learn how to build an application with multiple modules with Gradle and Open Liberty.

Continue reading

Guided Project

Open Liberty

At a Glance

You will learn how to build an application with multiple modules with Gradle and Open Liberty.

A Jakarta EE application consists of modules that work together as one entity. An enterprise archive (EAR) is a wrapper for a Jakarta EE application, which consists of web archive (WAR) and Java archive (JAR) files. To deploy or distribute the Jakarta EE application into new environments, all the modules and resources must first be packaged into an EAR file.

In this guide, you will learn how to:
  • establish a dependency between a web module and a Java library module,
  • use Gradle to package the WAR file and the JAR file into an EAR file so that you can run and test the application on Open Liberty, and
  • use the Liberty Gradle plug-in to develop a multi-module application in dev mode without having to prebuild the JAR and WAR files. In dev mode, your changes are automatically picked up by the running Liberty instance.
You will build a unit converter application that converts heights from centimeters into feet and inches. The application prompts the user to enter a height value in centimeters. Then, the application processes the input by using functions that are found in the JAR file to return the height value in imperial units.

Estimated Effort

30 Minutes

Level

Beginner

Skills You Will Learn

Gradle, Jakarta EE, MicroProfile, Open Liberty

Language

English

Course Code

GPXX09PNEN

Tell Your Friends!

Saved this page to your clipboard!

Have questions or need support? Chat with me 😊