FINERACT-1562: Excluding persistence.xml from being picked up by Spring

This commit is contained in:
Arnold Galovics
2022-04-07 06:05:09 +02:00
committed by Aleksandar Vidakovic
parent 61536332a3
commit 44e6d369e5
3 changed files with 5 additions and 75 deletions
+5 -2
View File
@@ -31,8 +31,8 @@ compileJava.doLast {
def mainSS = sourceSets.main
def source = mainSS.java.classesDirectory.get()
copy {
from "src/main/resources/"
into source
from "src/main/resources/jpa/"
into "${source}/META-INF/"
}
javaexec {
description = 'Performs EclipseLink static weaving of entity classes'
@@ -41,6 +41,9 @@ compileJava.doLast {
args '-persistenceinfo', source, '-classpath', configurations.runtimeClasspath, source, target
classpath configurations.runtimeClasspath
}
delete {
delete "${source}/META-INF/"
}
}
// Configuration for Swagger documentation generation task