HHH-13925 Upgrade hibernate-gradle-plugin to Gradle 6

This commit is contained in:
Yoann Rodière 2020-04-02 17:45:52 +02:00
parent bee15c498f
commit 9bb76a5cca
2 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,7 @@ package org.hibernate.orm.tooling.gradle
*
* @author Steve Ebersole
*/
class EnhanceExtension {
class EnhanceExtension implements Serializable {
def boolean enableLazyInitialization = false
def boolean enableDirtyTracking = false
def boolean enableAssociationManagement = false

View File

@ -7,6 +7,8 @@
package org.hibernate.orm.tooling.gradle
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.InputFiles
import org.gradle.api.tasks.SourceSet
import org.gradle.api.tasks.TaskAction
import org.gradle.util.ConfigureUtil
@ -16,7 +18,9 @@ import org.gradle.util.ConfigureUtil
*/
@SuppressWarnings("unused")
class EnhanceTask extends DefaultTask {
@Input
EnhanceExtension options
@InputFiles
SourceSet[] sourceSets
@TaskAction