Revert "FINERACT-2181: Make 'staticWeaveJPA' gradle task cacheable"

This reverts commit dd2c29fb91.
This commit is contained in:
Arnold Galovics
2025-06-20 21:53:28 +02:00
committed by Arnold Gálovics
parent 4b7335b724
commit d46ab4e73e
15 changed files with 238 additions and 151 deletions
+17 -6
View File
@@ -16,7 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.fineract.gradle.StaticWeaveJpaTask
description = 'Fineract Provider'
apply plugin: 'org.zeroturnaround.gradle.jrebel'
@@ -31,12 +30,25 @@ apply plugin: 'se.thinkcode.cucumber-runner'
check.dependsOn('cucumber')
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
tasks.register('staticWeaveJpa', JavaExec) {
dependsOn classes
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/provider/persistence.xml"))
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
copy {
from file("src/main/resources/jpa/static-weaving/module/provider/persistence.xml")
into "${persistenceInfo}/META-INF/"
}
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
classpath = sourceSets.main.runtimeClasspath
args = [
'-persistenceinfo', persistenceInfo,
classesDir.absolutePath,
outputDir.absolutePath
]
}
tasks.register("weavedJar", Jar) {
@@ -474,7 +486,6 @@ javadoc {
tasks.register('devRun', org.springframework.boot.gradle.tasks.run.BootRun) {
description = 'Runs the application quickly for development by skipping quality checks'
group = 'Application'
dependsOn staticWeaveJpa
// Configure the build to skip quality checks
gradle.taskGraph.whenReady { graph ->