From 126a28e8f4b3ad49179d40262a7e23ff7cd4025c Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Thu, 3 Aug 2023 15:38:03 +0200 Subject: [PATCH] Fix jpamodelgen build error with Gradle 8 --- hibernate-core/hibernate-core.gradle | 5 +++++ tooling/metamodel-generator/hibernate-jpamodelgen.gradle | 3 +++ 2 files changed, 8 insertions(+) diff --git a/hibernate-core/hibernate-core.gradle b/hibernate-core/hibernate-core.gradle index 39111373e6..1fac4e49f1 100644 --- a/hibernate-core/hibernate-core.gradle +++ b/hibernate-core/hibernate-core.gradle @@ -328,3 +328,8 @@ task collectConfigProperties { task -> dependsOn tasks.generateConfigsProperties } + +tasks.sourcesJar.dependsOn ':hibernate-core:generateGraphParser' +tasks.sourcesJar.dependsOn ':hibernate-core:generateHqlParser' +tasks.sourcesJar.dependsOn ':hibernate-core:generateSqlScriptParser' +tasks.sourcesJar.dependsOn ':hibernate-core:generateOrderingParser' diff --git a/tooling/metamodel-generator/hibernate-jpamodelgen.gradle b/tooling/metamodel-generator/hibernate-jpamodelgen.gradle index 2e0d4585f1..23a12e6882 100644 --- a/tooling/metamodel-generator/hibernate-jpamodelgen.gradle +++ b/tooling/metamodel-generator/hibernate-jpamodelgen.gradle @@ -104,6 +104,9 @@ task jaxb { } } } +tasks.sourcesJar.dependsOn jaxb +tasks.sourcesJar.dependsOn ':hibernate-core:generateHqlParser' +tasks.sourcesJar.dependsOn ':hibernate-core:generateSqlScriptParser' tasks.compileJava.dependsOn jaxb checkstyleMain.exclude '**/jaxb/**'