Copy & remove only persistence.xml during static weaving instead of full META-INF
This commit is contained in:
committed by
Aleksandar Vidakovic
parent
f22807b944
commit
e009158d7d
@@ -31,7 +31,7 @@ compileJava.doLast {
|
|||||||
def mainSS = sourceSets.main
|
def mainSS = sourceSets.main
|
||||||
def source = mainSS.java.classesDirectory.get()
|
def source = mainSS.java.classesDirectory.get()
|
||||||
copy {
|
copy {
|
||||||
from "src/main/resources/jpa/"
|
from file("src/main/resources/jpa/persistence.xml")
|
||||||
into "${source}/META-INF/"
|
into "${source}/META-INF/"
|
||||||
}
|
}
|
||||||
javaexec {
|
javaexec {
|
||||||
@@ -42,7 +42,7 @@ compileJava.doLast {
|
|||||||
classpath configurations.runtimeClasspath
|
classpath configurations.runtimeClasspath
|
||||||
}
|
}
|
||||||
delete {
|
delete {
|
||||||
delete "${source}/META-INF/"
|
delete "${source}/META-INF/persistence.xml"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user