Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@arturbosch
Copy link
Member

I've tried to use the worker api to mitigate our classloader caching problems when changing detekt artifacts.

However the worker api has it's own shortcomings. It does for example not allow to cache classloaders and brings us back the jvm startup overhead.
This will bring us back to the old javaexec-implementation - performance-wise.

gradle/gradle#8221
gradle/gradle#9196

Imo this is also the reason why Gradle internal quality plugins haven't yet migrated to the worker api:
gradle/gradle#9196

The quality plugins use an IsolatedAntBuilder which uses internally a ClassPathToClassLoaderCache.

I open and close this PR for documentation purposes.
We will need to stay on our custom classloader cache and call the cli module reflectively for the best performance.

@sschuberth
Copy link
Contributor

Imo this is also the reason why Gradle internal quality plugins haven't yet migrated to the worker api

By now Checkstyle, PMD, and CodeNarc are all now implemented via the worker API. Does that open new opportunities for Detekt?

@cortinico
Copy link
Member

Imo this is also the reason why Gradle internal quality plugins haven't yet migrated to the worker api

By now Checkstyle, PMD, and CodeNarc are all now implemented via the worker API. Does that open new opportunities for Detekt?

This just got merged:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants