Hi,
There were about 3500 .java files generated from codegen. When I run gradle build on that javaCompile is taking about 5 minutes (running without --profile option takes about same time).
>gradle build --profile --parallel
Task Duration Result
: 6m6.05s (total)
:compileJava 4m48.67s
:bootJar 36.223s
:test 35.138s
:compileTestJava 5.703s
:processResources 0.302s UP-TO-DATE
:processTestResources 0.016s NO-SOURCE
:classes 0.001s Did No Work
:assemble 0s Did No Work
:build 0s Did No Work
:check 0s Did No Work
:jar 0s SKIPPED
:testClasses 0s Did No Work
As additional optimizations I ran gradle with --parallel and increased the memory in gradle.properties to
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
Any other suggestions?
Thanks!