Compile only changed modules when running sonar gradle task

Hey there.

You can’t get away with not scanning all projects (although if you’re using Pull Request analysis in Developer Edition, a cache will get used if you’ve scanned the target branch).

You can however choose when you compile. If you’re performing some sort of incremental build and all the bytecode is available by the time the scanner kicks off, this might help:

1 Like