Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Building Mule Apps With Gradle

DZone's Guide to

Building Mule Apps With Gradle

· Integration Zone ·
Free Resource

The new Gartner Critical Capabilities report explains how APIs and microservices enable digital leaders to deliver better B2B, open banking and mobile projects.

[Originally written by Juan Cavallotti.]

Gradle Logo

Gradle is gaining more and more popularity as a build system. It combines the power of scripting with the simplicity of conventions. Declarative builds are very straightforward, where customizations do not end up in tons of messy configurations.

Currently, Mule has two ways of building projects:

  • Apps can be built through Mule Studio, which is simple by nature but not very friendly with continuous integration, source control management and related tools.
  • The recommended way to manage your build is with Maven and the  Mule Maven plugin. This plugin is integrated with Mule Studio and has a lot of power on its own.

Now the open source community has presented a brand new way of building Mule apps with Gradle. The project aims to provide a very simple way to build Mule apps that is friendly with continuous integration and can work easily with Mule Studio. One of the interesting things about Gradle is that it can reduce over 90% the complexity of the build if we compare it with the same build based on Maven.

You can find detailed instructions on how to use this plugin in the project site: https://github.com/mulesoft/mule-gradle-plugin

The plugin in under development but it provides the basic features to build Mule apps:

  • Supports building Mule Community apps
  • Support for building Mule Enterprise apps including projects with DataMapper
  • Support for updating Mule Studio metadata
  • Support for APIKit Projects
  • Support for Unit testing

We will continue to add features so more enterprise products are supported, such as deployments to the Mule Management Console (MMC). Please feel free to request features on the project’s issue tracker. Be sure to try it out and let us know about your experience below!

The new Gartner Critical Capabilities for Full Lifecycle API Management report shows how CA Technologies helps digital leaders with their B2B, open banking, and mobile initiatives. Get your copy from CA Technologies.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}