diff --git a/hibernate-orm-build/src/main/java/org/hibernate/orm/jakarta/JakartaDirectoryTransformation.java b/hibernate-orm-build/src/main/java/org/hibernate/orm/jakarta/JakartaDirectoryTransformation.java index 317e7c8fc3..ceadde41d1 100644 --- a/hibernate-orm-build/src/main/java/org/hibernate/orm/jakarta/JakartaDirectoryTransformation.java +++ b/hibernate-orm-build/src/main/java/org/hibernate/orm/jakarta/JakartaDirectoryTransformation.java @@ -12,6 +12,7 @@ import javax.inject.Inject; import org.gradle.api.DefaultTask; import org.gradle.api.file.DirectoryProperty; import org.gradle.api.model.ObjectFactory; +import org.gradle.api.tasks.CacheableTask; import org.gradle.api.tasks.InputDirectory; import org.gradle.api.tasks.OutputDirectory; import org.gradle.api.tasks.TaskAction; @@ -21,6 +22,7 @@ import static org.hibernate.orm.jakarta.JakartaPlugin.JAKARTA; /** * @author Steve Ebersole */ +@CacheableTask public abstract class JakartaDirectoryTransformation extends DefaultTask { private final DirectoryProperty sourceDirectory; private final DirectoryProperty targetDirectory; diff --git a/hibernate-orm-build/src/main/java/org/hibernate/orm/jakarta/JakartaJarTransformation.java b/hibernate-orm-build/src/main/java/org/hibernate/orm/jakarta/JakartaJarTransformation.java index f115c342d4..6f45a7197e 100644 --- a/hibernate-orm-build/src/main/java/org/hibernate/orm/jakarta/JakartaJarTransformation.java +++ b/hibernate-orm-build/src/main/java/org/hibernate/orm/jakarta/JakartaJarTransformation.java @@ -11,6 +11,7 @@ import javax.inject.Inject; import org.gradle.api.DefaultTask; import org.gradle.api.file.RegularFileProperty; import org.gradle.api.model.ObjectFactory; +import org.gradle.api.tasks.CacheableTask; import org.gradle.api.tasks.InputFile; import org.gradle.api.tasks.OutputFile; import org.gradle.api.tasks.TaskAction; @@ -20,6 +21,7 @@ import static org.hibernate.orm.jakarta.JakartaPlugin.JAKARTA; /** * @author Steve Ebersole */ +@CacheableTask public abstract class JakartaJarTransformation extends DefaultTask { private final RegularFileProperty sourceJar; private final RegularFileProperty targetJar;