From acb1989138e876ff1a451f452467949c30b901d9 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Wed, 8 Jun 2022 00:43:27 -0500 Subject: [PATCH] HHH-15314 - Hibernate Gradle plugin is not working for Kotlin projects --- .../orm/tooling/gradle/enhance/EnhancementTask.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tooling/hibernate-gradle-plugin/src/main/java/org/hibernate/orm/tooling/gradle/enhance/EnhancementTask.java b/tooling/hibernate-gradle-plugin/src/main/java/org/hibernate/orm/tooling/gradle/enhance/EnhancementTask.java index 4d05bea375..af06ccce4b 100644 --- a/tooling/hibernate-gradle-plugin/src/main/java/org/hibernate/orm/tooling/gradle/enhance/EnhancementTask.java +++ b/tooling/hibernate-gradle-plugin/src/main/java/org/hibernate/orm/tooling/gradle/enhance/EnhancementTask.java @@ -33,6 +33,12 @@ import static org.hibernate.orm.tooling.gradle.HibernateOrmSpec.HIBERNATE; public class EnhancementTask extends DefaultTask { public static final String DSL_NAME = "hibernateEnhance"; + private final DirectoryProperty compilationOutputDirectory; + private final DirectoryProperty outputDirectory; + + public EnhancementTask() { + } + public static void apply(HibernateOrmSpec pluginDsl, SourceSet mainSourceSet, Project project) { final EnhancementTask enhancementTask = project.getTasks().create( DSL_NAME, @@ -52,8 +58,6 @@ public class EnhancementTask extends DefaultTask { } private final EnhancementSpec enhancementDsl; - private final DirectoryProperty javaCompileOutputDirectory; - private final DirectoryProperty outputDirectory; @Inject public EnhancementTask(HibernateOrmSpec pluginDsl, SourceSet mainSourceSet, Project project) {