FINERACT-1562: Excluding persistence.xml from being picked up by Spring
This commit is contained in:
committed by
Aleksandar Vidakovic
parent
61536332a3
commit
44e6d369e5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user