Closed cyrilc-pro closed 3 weeks ago
Hello,
Yes, marking a plugin as thread safe is quite easy. But insuring it to be thread safe is really complex : the plugin uses several libraries, which themselves use libraries... I have no way to guaranty that all these dependencies are thread safe. BTW, after a quick check, I see nothing that could cause threading issues.
How important is it for you ?
Etienne
It is definitely not a blocker (for me, it works, but I have only one module that generates GraphQL among other modules, all built in parallel). I'm aware of the complexity of thread-safety checks. I guess that you might just acknowledge that the plugin "must" be thread-safe, mark it as such, and then, if one day someone finds an issue with parallel builds, you'll "just" process it as any other issue (fix it or not). You could even rollback the adoption of the thread-safety flag ;)
Done in release 2.6
When using Maven parallel builds, Maven reports the following warning:
(Note: I'm using plugin 1.18.12 because I'm stuck with an old Spring Boot version.)
My guess is that the plugin is actually thread-safe and just needs to be declared as thread-safe.
See example here: https://github.com/quarkusio/quarkus/issues/27596