Revert "HHH-15314 - Hibernate Gradle plugin is not working for Kotlin projects"
This reverts commit f2613913729a99e8c41bcfedc694559579f7b370.
This commit is contained in:
parent
acb1989138
commit
43aec7e8ea
|
@ -33,12 +33,6 @@ import static org.hibernate.orm.tooling.gradle.HibernateOrmSpec.HIBERNATE;
|
||||||
public class EnhancementTask extends DefaultTask {
|
public class EnhancementTask extends DefaultTask {
|
||||||
public static final String DSL_NAME = "hibernateEnhance";
|
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) {
|
public static void apply(HibernateOrmSpec pluginDsl, SourceSet mainSourceSet, Project project) {
|
||||||
final EnhancementTask enhancementTask = project.getTasks().create(
|
final EnhancementTask enhancementTask = project.getTasks().create(
|
||||||
DSL_NAME,
|
DSL_NAME,
|
||||||
|
@ -58,6 +52,8 @@ public class EnhancementTask extends DefaultTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
private final EnhancementSpec enhancementDsl;
|
private final EnhancementSpec enhancementDsl;
|
||||||
|
private final DirectoryProperty javaCompileOutputDirectory;
|
||||||
|
private final DirectoryProperty outputDirectory;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public EnhancementTask(HibernateOrmSpec pluginDsl, SourceSet mainSourceSet, Project project) {
|
public EnhancementTask(HibernateOrmSpec pluginDsl, SourceSet mainSourceSet, Project project) {
|
||||||
|
|
|
@ -126,7 +126,7 @@ class HibernateOrmPluginTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Disabled( "up-to-date checking not working" )
|
// @Disabled( "up-to-date checking not working" )
|
||||||
public void testJpaMetamodelGenUpToDate(@TempDir Path projectDir) {
|
public void testJpaMetamodelGenUpToDate(@TempDir Path projectDir) {
|
||||||
Copier.copyProject( "simple/build.gradle", projectDir );
|
Copier.copyProject( "simple/build.gradle", projectDir );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue