Compilation takes too long for a converted to jmix application

Hi,
We have converted a Cuba application into Jmix (1.5) but it seems that the compilation process now takes too long - it sometimes requires more than 3-5 minutes…

You can find below a sample of the log during compilation process. The delay is noticed when the compilation process reaches the point: Ehnancing entities in root project… (see below sample)

> Task :bootBuildInfo

> Task :compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Enhancing entities in root project 'jmix-iplatform' for source set 'main'
Project entities:
    JPA: [com.company.vesselinsights.entity.map.TerritoryPoint, com.company.vesselinsights.entity.performance.SeaTrialCurve, ....];
    DTO: [com.company.vesselinsights.entity.performance.VesselPerformanceEntry, com.company.vesselinsights.cisco.AMPComputers, ...] 
Project converters: [].
Running EclipseLink enhancer in root project 'jmix-iplatform' for source set 'main'
Running EclipseLink enhancer in root project 'jmix-iplatform' for source set 'main'

Any idea?

Kind Regards,
George

Hi George,

We have similar requests registered in this issue: Skip enhancing of entities if entities weren't changed · Issue #2245 · jmix-framework/jmix · GitHub
Please provide more information so we could define and prioritize the problem more precisely.

How many entities are in the project?
How long was the compilation of the same project in CUBA?

Hi Konstantin,
Our project contains approximately 200 entities. We have similar projects in Jmix but there is no significant delay during compilation process. Only the project that has been converted from Cuba takes too long! When we used the Cuba version, the process was completed within a few seconds!

Regards,
George

Please run the following command and attach the resulting file:

./gradlew --debug clean assemble >build.log

Thanks George, we’ll save your log file internally and remove it from here, just in case of any sensitive content.