detekt: Detekt gradle is much slower than the jar
./gradlew detekt
is much slower than java -jar ~/projects/detekt/detekt-cli/build/libs/detekt-cli-1.1.1-all.jar -c detekt-config.yml -b baseline.xml
in multi-module projects.
I did some measure with a project where I have gralde detekt installed (I can’t share it because is the code of my employer).
./gradlew detekt with org.gradle.parallel=true (8 workers) |
./gradlew detekt with org.gradle.parallel=false |
java -jar ~/projects/detekt/detekt-cli/build/libs/detekt-cli-1.1.1-all.jar -c detekt-config.yml -b baseline.xml |
---|---|---|
~51s | ~78s | ~11s |
This project has 44 modules right now.
Any idea why is this happening? How could we improve this numbers?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 18 (18 by maintainers)
Commits related to this issue
- Do not dynamically set the detekt version due to performance reasons - #2035 This deprecates setting the detekt version via the toolVersion property of the extension. — committed to detekt/detekt by arturbosch 5 years ago
- Do not dynamically set the detekt version due to performance reasons - #2035 This deprecates setting the detekt version via the toolVersion property of the extension. — committed to detekt/detekt by arturbosch 5 years ago
- Do not dynamically set the detekt version due to performance reasons - #2035 This deprecates setting the detekt version via the toolVersion property of the extension. — committed to detekt/detekt by arturbosch 5 years ago
- Do not dynamically set the detekt version due to performance reasons - #2035 This deprecates setting the detekt version via the toolVersion property of the extension. — committed to detekt/detekt by arturbosch 5 years ago
I will release a beta/test version of 1.7.0 today so we can get some feedback for this.