Bytecode enhancement using the Gradle plugin is directly tied to the Gradle compileJava task as a "task action" added to the compile task for each indicated source-set (main by default). Exposing bytecode enhancement via a separate/standalone task would provide greater flexibility in various build environments.
Is this on the roadmap for the next version of Hibernate?
Pushed to master. PR created for 5.3
5.3 PR -
Fixed in 5.3 branch as well.