When using the hibernate-gradle-plugin with recent gradle versions, a deprecation warning is shown:
"Gradle now uses separate output directories for each JVM language, but this build assumes a single directory for all classes from a source set. This behaviour has been deprecated and is scheduled to be removed in Gradle 5.0."
It is caused by the call to getClassesDir in HibernatePlugin.applyEnhancement.