This is no longer an issue for me, guess it was really a gradle question, 
unrelated to jooq.  After I enabled incremental compile on the gradle 
config file with

apply plugin: 'java'

tasks.withType(JavaCompile) {
    //enable compilation in a separate daemon process
    options.fork = true

    //enable incremental compilation
    options.incremental = true
}


Only a gradle clean build takes 5+ minutes.  I can live with that.  Now it 
looks like this on incremental compile

Task Duration Result
: 1m24.65s (total)
:bootJar 36.972s 
:test 36.479s 
:compileJava 9.444s 
:compileTestJava 1.723s UP-TO-DATE
:processResources 0.030s UP-TO-DATE
:processTestResources 0.002s NO-SOURCE
:classes 0.001s Did No Work
:testClasses 0.001s UP-TO-DATE
:assemble 0s Did No Work
:build 0s Did No Work
:check 0s Did No Work
:jar 0s SKIPPED


Thanks.


On Wednesday, August 22, 2018 at 2:38:19 PM UTC-4, [email protected] 
wrote:
>
>
> Hi, 
>
> I have seen an older thread with slow JOOQ compile time as of v3.8.x (
> https://groups.google.com/forum/#!topic/jooq-user/vuaG9d9krDk).  It seems 
> like that specific issue is now closed.
>
> 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!
>
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to