Copy & remove only persistence.xml during static weaving instead of full META-INF

This commit is contained in:
Arnold Galovics
2022-04-08 14:08:08 +02:00
committed by Aleksandar Vidakovic
parent f22807b944
commit e009158d7d
+2 -2
View File
@@ -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"
}
}