Hi Fabrizio
After creating an add-on with the template, you can publish it to the local Maven repo (~/.m2) using the command:
./gradlew publishToMavenLocal
You will have two artifacts (the functional module and the starter) with coordinates defined by the parameters of your build scripts.
The group and version are set in /build.gradle:
group = 'com.company'
version = '0.0.1-SNAPSHOT'
Artifact names are set in demoaddon/demoaddon.gradle and demoaddon-starter/demoaddon-starter.gradle in the archivesBaseName property.
In order to use your add-on in an application project, you should add mavenLocal() to the repositories configuration and your add-on’s starter as a dependency, for example:
repositories {
mavenLocal()
// ...
}
dependencies {
implementation 'com.company:demoaddon-starter:0.0.1-SNAPSHOT'
// ...
We’ll add this information to the docs soon.
Regards,
Konstantin