FINERACT-2181: Gradle task rework - Optimized weaving across all modules

This commit is contained in:
Adam Saghy
2025-06-22 22:41:34 +02:00
parent ee5290c92e
commit db28259b1a
36 changed files with 1310 additions and 943 deletions
+1 -20
View File
@@ -21,25 +21,6 @@ description = 'Fineract Core'
apply plugin: 'java'
apply plugin: 'eclipse'
compileJava.doLast {
def mainSS = sourceSets.main
def source = mainSS.java.classesDirectory.get()
copy {
from file("src/main/resources/jpa/core/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, source, target
classpath sourceSets.main.runtimeClasspath
}
delete {
delete "${source}/META-INF/persistence.xml"
}
}
configurations {
providedRuntime // needed for Spring Boot executable WAR
providedCompile
@@ -64,7 +45,7 @@ configurations {
apply from: 'dependencies.gradle'
compileJava {
dependsOn ':fineract-avro-schemas:jar'
dependsOn ':fineract-avro-schemas:buildJavaSdk'
options.compilerArgs += ['-parameters']
}