diff --git a/tooling/hibernate-gradle-plugin/src/main/groovy/org/hibernate/orm/tooling/gradle/HibernatePlugin.java b/tooling/hibernate-gradle-plugin/src/main/groovy/org/hibernate/orm/tooling/gradle/HibernatePlugin.java index 36ea046728..d35037fc40 100644 --- a/tooling/hibernate-gradle-plugin/src/main/groovy/org/hibernate/orm/tooling/gradle/HibernatePlugin.java +++ b/tooling/hibernate-gradle-plugin/src/main/groovy/org/hibernate/orm/tooling/gradle/HibernatePlugin.java @@ -48,6 +48,12 @@ public class HibernatePlugin implements Plugin { } } + /** + * Gradle doesn't allow lambdas in doLast or doFirst configurations and causing up-to-date checks + * to fail. Extracting the lambda to an inner class works around this issue. + * + * @link https://github.com/gradle/gradle/issues/5510 + */ private static class EnhancerAction implements Action { private final SourceSet sourceSet;