Over a million developers have joined DZone.

Building Mule Apps With Gradle

DZone's Guide to

Building Mule Apps With Gradle

· Integration Zone
Free Resource

Discover how Microservices are a type of software architecture where large applications are made up of small, self-contained units working together through APIs that are not dependent on a specific language. Brought to you in partnership with AppDynamics.

[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!

Discover the six challenges and best practices in managing microservice performance, brought to you in partnership with AppDynamics.


Published at DZone with permission of Ross Mason, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


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

{{ parent.tldr }}

{{ parent.urlSource.name }}