We have a very old legacy project using lots of hbb.xml files and Hibernate6 complains about them. I found that hibernate gradle plugin promises to be able to transform them, but it is not yet documented.
I found a TransformHbmXmlTask, but I did not found how to instrument it from gradle.