I have a micronaut(1.2.5) project which uses gradle. The build time is very slow. I have tried the following:
org.gradle.jvmargs=-Xmx4048m -XX:MaxPermSize=1024m
org.gradle.caching=true
org.gradle.daemon=true
which seem to have no affect in the build time.
I noticed I was getting this log in startup
> Task :compileJava
Note: Creating bean classes for 539 type elements
When I have smaller no. of classes such as 100, the build time is better and seems to get worse as the project grows larger.
I can't help with the no. of classes the project has and it may continue to grow more in the future. Is there some way to enhance build time when having large no. of classes?
This is the profile that was generated
