Building the moduleΒΆ

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

buildscript {
  repositories {
    jcenter()
    maven {
      url 'http://repo.enonic.com/public'
    }
  }

  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.first.module'
  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.