From 107849c3c81c8a1fd7242a1cc51104062890c0b2 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Wed, 16 Jun 2021 08:37:14 +0200 Subject: [PATCH] Fix jakarta sources transformation issues --- hibernate-core/hibernate-core.gradle | 4 ++++ hibernate-envers/hibernate-envers.gradle | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/hibernate-core/hibernate-core.gradle b/hibernate-core/hibernate-core.gradle index 069335b2b7..c04f082d21 100644 --- a/hibernate-core/hibernate-core.gradle +++ b/hibernate-core/hibernate-core.gradle @@ -229,6 +229,10 @@ task copyBundleResources (type: Copy) { } processTestResources.dependsOn copyBundleResources +sourcesJar { + duplicatesStrategy = DuplicatesStrategy.EXCLUDE +} + task testJar(type: Jar, dependsOn: testClasses) { duplicatesStrategy = DuplicatesStrategy.EXCLUDE archiveClassifier.set( 'test' ) diff --git a/hibernate-envers/hibernate-envers.gradle b/hibernate-envers/hibernate-envers.gradle index 5bcc7d4e9f..005453e918 100644 --- a/hibernate-envers/hibernate-envers.gradle +++ b/hibernate-envers/hibernate-envers.gradle @@ -71,6 +71,10 @@ jar { } } +sourcesJar { + duplicatesStrategy = DuplicatesStrategy.EXCLUDE +} + task testJar(type: Jar, dependsOn: testClasses) { duplicatesStrategy = DuplicatesStrategy.EXCLUDE archiveClassifier.set( 'test' )