elect
07/23/2019, 9:21 AMcompileJava
which on Netbeans/Idea turns out to be blazing fast. There have been some suggestions, like divide the project into modules and activate build cache, but all of this appears to be light patches that only smoothes the problem (because every modification seems likely to trigger a full recompile anyway at module-level).
My big question is why Gradle (and company) lags so behind in terms of performances..tddmonkey
07/23/2019, 9:27 AMelect
07/23/2019, 9:27 AMgildor
07/23/2019, 9:28 AMelect
07/23/2019, 9:28 AMgildor
07/23/2019, 9:28 AMelect
07/23/2019, 9:29 AMtddmonkey
07/23/2019, 9:30 AMelect
07/23/2019, 9:30 AMelect
07/23/2019, 9:31 AMtddmonkey
07/23/2019, 9:32 AMelect
07/23/2019, 9:33 AMtddmonkey
07/23/2019, 9:35 AMelect
07/23/2019, 9:36 AMelect
07/23/2019, 9:39 AMtddmonkey
07/23/2019, 9:44 AMgildor
07/23/2019, 9:45 AMgildor
07/23/2019, 9:46 AMelect
07/23/2019, 9:48 AMelect
07/23/2019, 9:48 AM.\gradlew compileJava --info
is clear, this is the output of a single String
modification inside a class constructor:
Task ':compileJava' is not up-to-date because:
Input property 'source' file D:\DEVELOPMENT\EMM-Check\src\main\java\ec\gui\dialogs\vrserver\EC_VrClientListener.java has changed.
Created classpath snapshot for incremental compilation in 0.008 secs. 2061 duplicate classes found in classpath (see all with --debug).
Class dependency analysis for incremental compilation took 0.076 secs.
Full recompilation is required because 'EC_VrClientListener.java' was changed. Analysis took 0.087 secs.
gildor
07/23/2019, 9:51 AMgildor
07/23/2019, 9:52 AMelect
07/23/2019, 9:52 AMgildor
07/23/2019, 9:52 AMgildor
07/23/2019, 9:53 AMelect
07/23/2019, 9:53 AMelect
07/23/2019, 9:53 AMgildor
07/23/2019, 9:57 AMwhy a plain project without build tool is much faster?I think it’s a wrong question. Because apparently you comparing full recompilation with incremental one. The right question is “why incremental compilation doesn;’t work”
elect
07/23/2019, 9:57 AMgildor
07/23/2019, 10:00 AMelect
07/23/2019, 10:00 AMgildor
07/23/2019, 10:02 AMelect
07/23/2019, 10:04 AMTask ':compileJava' is not up-to-date because:Input property 'source' file D:\DEVELOPMENT\EMM-Check\src\main\java\ec\utils\code\EC_CodeCount.java has changed. Created classpath snapshot for incremental compilation in 0.007 secs. 2061 duplicate classes found in classpath (see all with --debug). Class dependency analysis for incremental compilation took 0.079 secs. Compiling with JDK Java compiler API. Incremental compilation of 1 classes completed in 0.225 secs. :compileJava (Thread[Execution worker for ':',5,main]) completed. Took 0.468 secs. BUILD SUCCESSFUL in 1s 1 actionable task: 1 executed
elect
07/23/2019, 10:05 AMgildor
07/23/2019, 10:06 AMgildor
07/23/2019, 10:06 AMcedric
07/23/2019, 8:57 PMConfig.java
, Version.java
or captures the current git branch or sha, chances are high that you’re being hit with full rebuilds.gildor
07/23/2019, 11:30 PMelect
07/24/2019, 8:06 AMcompileJava
seems like a black boxgildor
07/24/2019, 8:08 AM