Building the moduleΒΆ

The project is built using Gradle. Here is a simple build script to build my-first-module.

buildscript {
  repositories {
    maven {
      url ''

  dependencies {
    classpath 'com.enonic.xp.gradle:gradle-plugin:1.2.0'

apply plugin: 'com.enonic.xp.gradle.module'
version = '1.0.0'

module {
  name = 'com.enonic.xp.modules.mymodule'
  displayName = 'My first module'

To build your module, write gradle build on the command line:

$ gradle build

This will produce a jar file that is located inside build/libs folder. That jar file is your build artifact you can install into Enonic XP.