Skip to content

Commit

Permalink
fix task deps apache#5
Browse files Browse the repository at this point in the history
  • Loading branch information
kjozsa committed Nov 14, 2024
1 parent 552500a commit 566e8db
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions fineract-provider/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand All @@ -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 {
Expand Down

0 comments on commit 566e8db

Please sign in to comment.