HHH-13870 - Add explaining comment

This commit is contained in:
Christoph Dreis 2020-02-19 17:47:05 +01:00 committed by Steve Ebersole
parent 5ea5bd12b0
commit 1364929fe0
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,12 @@ public class HibernatePlugin implements Plugin<Project> {
} }
} }
/**
* 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<Task> { private static class EnhancerAction implements Action<Task> {
private final SourceSet sourceSet; private final SourceSet sourceSet;