We are about to create multiple Jmix projects using common features. To keep us able to maintain them and avoid duplicating code, we want to create Jmix add-ons sharing these common features.
I have read the topic https://forum.jmix.io/t/multi-module-application/362. I am aware, that there is no full studio-support yet for creating screens, entities etc. So We started to create an add-on without the studio having a look at the ldap add-on. We managed to create a basic directory structure and gradle configurations.
The code we want to move into the new add-on is already existing in two Jmix application projects. But declaring the dependencies which are required for the feature fails when trying to compile the code as add-on. The dependencies contain company-internal libraries as well which are compiled with Java 11.
Unfortunately the jmix build for add-ons forces the Java version compatibility to Java version 8:
Method private void setupCompilation(Project project, JmixBuildExtension extension)
in https://github.com/Haulmont/jmix-build/blob/v1.1.0/src/main/groovy/io/jmix/build/JmixBuildPlugin.groovy.
I understand, that public add-ons should fulfill this requirement, but I wasn’t able to modify this for our internal add-ons.
Is there any way?