JMIX Addon Template

Hi Guys!

Is there a template to create JMIX Addon?

Thanks,

Thomas Rabelo

Sure.
Use “Single Module Add-on” template in the new project wizard.

Regards,
Konstantin

1 Like

Hi Konstantine,
i’m also interested in creating modular application (using JMIX Addon).
I created a sample addon for testing purpose but it’s not clear to me how to start and test it.
There is (or there is a plan to) a tutorial or documentation with your guidelines on multi-module/addons development ?
Thanks a lot
Fabrizio

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

2 Likes

Thanks Konstantin for the clarification.
Regards,
Fabrizio