For Enonic XP 7.x, use version 3.6.2.
For Enonic XP 8.x, use version 4.0.0 or later.
To build and publish the plugin to your local maven repository, run ./gradlew publishToMavenLocal
To use the locally built plugin in your project comment out the plugin line in your build.gradle file:
id 'com.enonic.xp.app' version '4.0.0-A1'
add the following to the top of your build.gradle file:
buildscript {
repositories {
mavenLocal()
gradlePluginPortal()
maven {
url = 'https://repo.enonic.com/public'
}
}
dependencies {
classpath "com.enonic.gradle:xp-gradle-plugin:4.0.0-SNAPSHOT"
}
}and add the following after plugins section in your build.gradle file:
apply plugin: 'com.enonic.xp.app'
To release a new version of the plugin, change the version in build.gradle.kts (for instance version = "4.0.0",
tag the commit with the version number (for instance git tag v4.0.0) and push to GitHub (git push --follow-tags).
After the release is done, update the version in build.gradle.kts to the next snapshot version (for instance version = "4.0.1-SNAPSHOT").