From e009158d7d73040fc6d8b24b319c664a0abe16eb Mon Sep 17 00:00:00 2001 From: Arnold Galovics Date: Thu, 7 Apr 2022 21:36:05 +0200 Subject: [PATCH] Copy & remove only persistence.xml during static weaving instead of full META-INF --- fineract-provider/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fineract-provider/build.gradle b/fineract-provider/build.gradle index c1cbd73a6..99db4e15d 100644 --- a/fineract-provider/build.gradle +++ b/fineract-provider/build.gradle @@ -31,7 +31,7 @@ compileJava.doLast { def mainSS = sourceSets.main def source = mainSS.java.classesDirectory.get() copy { - from "src/main/resources/jpa/" + from file("src/main/resources/jpa/persistence.xml") into "${source}/META-INF/" } javaexec { @@ -42,7 +42,7 @@ compileJava.doLast { classpath configurations.runtimeClasspath } delete { - delete "${source}/META-INF/" + delete "${source}/META-INF/persistence.xml" } }