FINERACT-1758: Improve custom module example

This commit is contained in:
Aleksandar Vidakovic
2022-10-14 18:57:36 +02:00
committed by Aleksandar Vidakovic
parent 388612b1ae
commit ba765f9b7a
51 changed files with 938 additions and 584 deletions
+16 -4
View File
@@ -17,10 +17,6 @@
* under the License.
*/
rootProject.name='fineract'
include ':module:dummy:core'
include ':module:dummy:service'
include ':module:dummy:starter'
include ':custom:foo:service'
include ':fineract-provider'
include ':fineract-war'
include ':integration-tests'
@@ -29,3 +25,19 @@ include ':oauth2-tests'
include ':fineract-client'
include ':fineract-doc'
include ':fineract-avro-schemas'
// NOTE: custom Docker image with all custom modules included
include ':custom:docker'
// NOTE: dynamically load custom modules with pattern "custom -> company -> category -> module"
file("${rootDir}/custom").eachDir { companyDir ->
if('build' != companyDir.name && 'docker' != companyDir.name) {
file("${rootDir}/custom/${companyDir.name}").eachDir { categoryDir ->
if('build' != categoryDir.name) {
file("${rootDir}/custom/${companyDir.name}/${categoryDir.name}").eachDir { moduleDir ->
if('build' != moduleDir.name) {
include ":custom:${companyDir.name}:${categoryDir.name}:${moduleDir.name}"
}
}
}
}
}
}