From 566e8db2a24fd18b4b0883c372eb3bcedcc4fcf6 Mon Sep 17 00:00:00 2001 From: Kristof Jozsa Date: Thu, 14 Nov 2024 12:15:00 +0100 Subject: [PATCH] fix task deps #5 --- fineract-provider/build.gradle | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fineract-provider/build.gradle b/fineract-provider/build.gradle index 6bdb56e1ed5..20c9ce550a8 100644 --- a/fineract-provider/build.gradle +++ b/fineract-provider/build.gradle @@ -54,7 +54,7 @@ task enhanceJPA(type: JavaExec) { into enhancementDir } - // Copy persistence.xml + // Copy persistence.xml for enhancement copy { from file("src/main/resources/jpa/persistence.xml") into "${enhancementDir}/META-INF/" @@ -75,11 +75,9 @@ task enhanceJPA(type: JavaExec) { } } -// Make sure enhanceJPA runs between compileJava and classes -classes.dependsOn enhanceJPA - -// Make test compilation depend on enhanced classes -compileTestJava.dependsOn enhanceJPA +// Configure task dependencies +compileJava.finalizedBy enhanceJPA +compileTestJava.mustRunAfter enhanceJPA // Configuration for Swagger documentation generation task task prepareInputYaml {