From 1364929fe08f87400ee97a4859d4c242c07c32fd Mon Sep 17 00:00:00 2001 From: Christoph Dreis Date: Wed, 19 Feb 2020 17:47:05 +0100 Subject: [PATCH] HHH-13870 - Add explaining comment --- .../org/hibernate/orm/tooling/gradle/HibernatePlugin.java | 6 ++++++ 1 file changed, 6 insertions(+) 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;