Build Java generator plugin during the configuration (again)
This is a pre-requisite for properly generating the client source
files at configuration time when calling qt_add_openapi_client()
macro.
The commit tries to optimize the process a bit.
The plugin is only rebuild when the related source files are
changed or when the plugin jar file does not exist.
Task-number: QTBUG-143502
Pick-to: 6.11
Change-Id: I1b175fc5b43ecf3e2becb319c9249d2c63eaa7d1
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>