FINERACT-1758: Improve custom module example
This commit is contained in:
committed by
Aleksandar Vidakovic
parent
388612b1ae
commit
ba765f9b7a
+16
-4
@@ -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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user