FINERACT-1926: Minor fixes with module static weaving

This commit is contained in:
Arnold Galovics
2023-05-16 21:43:54 +02:00
committed by Arnold Gálovics
parent da1aa9e5a8
commit 9fee79ecde
10 changed files with 210 additions and 4 deletions
+19
View File
@@ -23,6 +23,25 @@ apply plugin: 'eclipse'
check.dependsOn('cucumber')
compileJava.doLast {
def mainSS = sourceSets.main
def source = mainSS.java.classesDirectory.get()
copy {
from file("src/main/resources/jpa/investor/persistence.xml")
into "${source}/META-INF/"
}
javaexec {
description = 'Performs EclipseLink static weaving of entity classes'
def target = source
main 'org.eclipse.persistence.tools.weaving.jpa.StaticWeave'
args '-persistenceinfo', source, '-classpath', sourceSets.main.runtimeClasspath, source, target
classpath sourceSets.main.runtimeClasspath
}
delete {
delete "${source}/META-INF/persistence.xml"
}
}
// Configuration for Swagger documentation generation task
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
import org.apache.tools.ant.filters.ReplaceTokens