Skip to content

Commit

Permalink
fix liquibase
Browse files Browse the repository at this point in the history
  • Loading branch information
kjozsa committed Nov 27, 2024
1 parent 4d7c50a commit b2472b7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions fineract-provider/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,26 @@ bootRun {
]
}

task copyDependencyResources(type: Copy) {
dependsOn configurations.runtimeClasspath
dependsOn ':fineract-core:jar'
dependsOn ':fineract-loan:jar'
dependsOn ':fineract-tax:jar'
dependsOn ':fineract-rates:jar'
dependsOn ':fineract-document:jar'
dependsOn ':fineract-report:jar'

from {
configurations.runtimeClasspath.collect { zipTree(it) }
}
include '**/db/changelog/**/*'
into "${buildDir}/resources/main"
}

classes.dependsOn copyDependencyResources

bootJar {
dependsOn copyDependencyResources
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public class LoanCOBEnabledCondition extends PropertiesCondition {

@Override
protected boolean matches(FineractProperties properties) {
return properties.getJob().isLoanCobEnabled();
return properties.getJob() != null && properties.getJob().isLoanCobEnabled();
}
}

0 comments on commit b2472b7

Please sign in to comment.