HHH-15314 - Hibernate Gradle plugin is not working for Kotlin projects

This commit is contained in:
Steve Ebersole 2022-06-08 00:43:27 -05:00
parent fad9db67b0
commit acb1989138
1 changed files with 6 additions and 2 deletions

View File

@ -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) {