@genesislcap/blank-app-seed 1.5.5 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.genx/package.json +1 -1
- package/.genx/prompts/server.js +10 -1
- package/.genx/prompts.js +2 -1
- package/.genx/tests/fixtures/testapp/docker-compose.yml +1 -1
- package/.genx/tests/fixtures/testapp/server/{jvm/testapp-config/src/main/resources → testapp-app/src/main/genesis}/cfg/testapp-processes.xml +1 -1
- package/.genx/versions.json +3 -3
- package/.github/CODEOWNERS +1 -1
- package/.github/workflows/build.yml +2 -3
- package/.gitignore +3 -6
- package/.releaserc +1 -1
- package/CHANGELOG.md +18 -0
- package/README.md +2 -2
- package/build.gradle.kts +1 -1
- package/client/package.json +6 -2
- package/docker-compose.yml +1 -11
- package/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/gradle.properties +1 -0
- package/gradlew +7 -7
- package/gradlew.bat +0 -0
- package/package.json +1 -1
- package/server/README.md +13 -0
- package/server/{jvm/build.gradle.kts → build.gradle.kts} +1 -14
- package/server/{jvm/gradle → gradle}/wrapper/gradle-wrapper.properties +1 -1
- package/server/gradle.properties +16 -0
- package/server/{jvm/gradlew → gradlew} +7 -7
- package/server/{jvm/gradlew.bat → gradlew.bat} +0 -0
- package/server/{jvm/settings.gradle.kts → settings.gradle.kts} +24 -31
- package/server/{{appName}}-app/build.gradle.kts +20 -0
- package/server/{jvm/{{appName}}-site-specific/src/main/resources → {{appName}}-app/src/main/genesis}/cfg/genesis-system-definition.kts +8 -11
- package/server/{{appName}}-app/src/main/genesis/cfg/{{appName}}-processes.xml +93 -0
- package/server/{{appName}}-app/src/main/genesis/cfg/{{appName}}-service-definitions.xml +23 -0
- package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-consolidator.kts +19 -0
- package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-data-pipeline.kts +19 -0
- package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-dataserver.kts +19 -0
- package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-eventhandler.kts +19 -0
- package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-reqrep.kts +19 -0
- package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-streamer-client.kts +19 -0
- package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-streamer.kts +19 -0
- package/settings.gradle.kts +1 -31
- package/server/jvm/README.md +0 -27
- package/server/jvm/docker-scripts/configureDB.sh +0 -12
- package/server/jvm/docker-scripts/docker-entrypoint.sh +0 -7
- package/server/jvm/docker-scripts/genesisInstall.sh +0 -5
- package/server/jvm/docker-scripts/remap.sh +0 -23
- package/server/jvm/gradle.properties +0 -10
- package/server/jvm/{{appName}}-config/build.gradle.kts +0 -8
- package/server/jvm/{{appName}}-config/src/main/kotlin/donotdelete.txt +0 -1
- package/server/jvm/{{appName}}-config/src/main/resources/cfg/{{appName}}-processes.xml +0 -15
- package/server/jvm/{{appName}}-config/src/main/resources/cfg/{{appName}}-service-definitions.xml +0 -15
- package/server/jvm/{{appName}}-deploy/build.gradle.kts +0 -35
- package/server/jvm/{{appName}}-dictionary-cache/build.gradle.kts +0 -13
- package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-dao/build.gradle.kts +0 -1
- package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-fields/build.gradle.kts +0 -1
- package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-hft/build.gradle.kts +0 -1
- package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-sysdef/build.gradle.kts +0 -1
- package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-view/build.gradle.kts +0 -1
- package/server/jvm/{{appName}}-distribution/build.gradle.kts +0 -97
- package/server/jvm/{{appName}}-eventhandler/build.gradle.kts +0 -13
- package/server/jvm/{{appName}}-messages/build.gradle.kts +0 -6
- package/server/jvm/{{appName}}-messages/src/main/kotlin/global/genesis/message/common/readme.md +0 -1
- package/server/jvm/{{appName}}-messages/src/main/kotlin/global/genesis/message/event/readme.md +0 -1
- package/server/jvm/{{appName}}-messages/src/main/kotlin/global/genesis/message/request/readme.md +0 -1
- package/server/jvm/{{appName}}-messages/src/main/resources/META-INF/global/genesis/message/product-info +0 -1
- package/server/jvm/{{appName}}-script-config/build.gradle.kts +0 -16
- package/server/jvm/{{appName}}-script-config/src/main/kotlin/donotdelete.txt +0 -1
- package/server/jvm/{{appName}}-script-config/src/main/resources/scripts/{{appName}}-dataserver.kts +0 -13
- package/server/jvm/{{appName}}-script-config/src/main/resources/scripts/{{appName}}-eventhandler.kts +0 -13
- package/server/jvm/{{appName}}-script-config/src/main/resources/scripts/{{appName}}-reqrep.kts +0 -13
- package/server/jvm/{{appName}}-script-config/src/test/kotlin/GenesisTestSupportTest.kt +0 -23
- package/server/jvm/{{appName}}-script-config/src/test/resources/GenesisHome/donotdelete.txt +0 -0
- package/server/jvm/{{appName}}-site-specific/README.md +0 -3
- package/server/jvm/{{appName}}-site-specific/build.gradle.kts +0 -114
- package/server/jvm/{{appName}}-site-specific/src/main/kotlin/donotdelete.txt +0 -1
- package/server/nginx/Dockerfile +0 -5
- package/server/nginx/cert.crt +0 -20
- package/server/nginx/cert.key +0 -27
- package/server/nginx/default.conf +0 -40
- /package/.genx/tests/fixtures/testapp/server/{jvm/testapp-config/src/main/resources → testapp-app/src/main/genesis}/cfg/testapp-fields-dictionary.kts +0 -0
- /package/.genx/tests/fixtures/testapp/server/{jvm/testapp-config/src/main/resources → testapp-app/src/main/genesis}/cfg/testapp-service-definitions.xml +0 -0
- /package/.genx/tests/fixtures/testapp/server/{jvm/testapp-config/src/main/resources → testapp-app/src/main/genesis}/cfg/testapp-tables-dictionary.kts +0 -0
- /package/.genx/tests/fixtures/testapp/server/{jvm/testapp-script-config/src/main/resources → testapp-app/src/main/genesis}/scripts/testapp-dataserver.kts +0 -0
- /package/.genx/tests/fixtures/testapp/server/{jvm/testapp-script-config/src/main/resources → testapp-app/src/main/genesis}/scripts/testapp-eventhandler.kts +0 -0
- /package/server/{jvm/gradle → gradle}/wrapper/gradle-wrapper.jar +0 -0
- /package/server/{jvm/{{appName}}-config/src/main/resources → {{appName}}-app/src/main/genesis}/cfg/{{appName}}-fields-dictionary.kts +0 -0
- /package/server/{jvm/{{appName}}-config/src/main/resources → {{appName}}-app/src/main/genesis}/cfg/{{appName}}-system-definition.kts +0 -0
- /package/server/{jvm/{{appName}}-config/src/main/resources → {{appName}}-app/src/main/genesis}/cfg/{{appName}}-tables-dictionary.kts +0 -0
- /package/server/{jvm/{{appName}}-config/src/main/resources → {{appName}}-app/src/main/genesis}/cfg/{{appName}}-view-dictionary.kts +0 -0
- /package/server/{jvm/{{appName}}-site-specific/src/main/resources/data/user.csv → {{appName}}-app/src/main/genesis/data/USER.csv} +0 -0
- /package/server/{jvm/{{appName}}-eventhandler/src/test/resources/GenesisHome/donotdelete.txt → {{appName}}-app/src/main/kotlin/.gitkeep} +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
!
|
|
3
|
+
! System : Genesis Business Library
|
|
4
|
+
! Sub-System : multi-pro-code-test Configuration
|
|
5
|
+
! Version : 1.0
|
|
6
|
+
! Copyright : (c) Genesis
|
|
7
|
+
! Date : 2022-03-18
|
|
8
|
+
! Function : Provide Process Definitions Config for multi-pro-code-test.
|
|
9
|
+
!
|
|
10
|
+
! Modification History
|
|
11
|
+
!
|
|
12
|
+
-->
|
|
13
|
+
<processes>
|
|
14
|
+
<!-- <process name="{{upperCase appName}}_DATASERVER">-->
|
|
15
|
+
<!-- <groupId>{{upperCase appName}}</groupId>-->
|
|
16
|
+
<!-- <start>true</start>-->
|
|
17
|
+
<!-- <options>-Xmx1024m -DXSD_VALIDATE=false</options>-->
|
|
18
|
+
<!-- <module>genesis-pal-dataserver</module>-->
|
|
19
|
+
<!-- <package>global.genesis.dataserver.pal</package>-->
|
|
20
|
+
<!-- <script>{{appName}}-dataserver.kts</script>-->
|
|
21
|
+
<!-- <description>Displays real-time details</description>-->
|
|
22
|
+
<!-- <language>pal</language>-->
|
|
23
|
+
<!-- </process>-->
|
|
24
|
+
<!-- <process name="{{upperCase appName}}_REQUEST_SERVER">-->
|
|
25
|
+
<!-- <groupId>{{upperCase appName}}</groupId>-->
|
|
26
|
+
<!-- <start>true</start>-->
|
|
27
|
+
<!-- <options>-Xmx256m -DXSD_VALIDATE=false</options>-->
|
|
28
|
+
<!-- <module>genesis-pal-requestserver</module>-->
|
|
29
|
+
<!-- <package>global.genesis.requestreply.pal</package>-->
|
|
30
|
+
<!-- <script>{{appName}}-reqrep.kts</script>-->
|
|
31
|
+
<!-- <description>Server one-shot requests for details</description>-->
|
|
32
|
+
<!-- <language>pal</language>-->
|
|
33
|
+
<!-- </process>-->
|
|
34
|
+
<!-- <process name="{{upperCase appName}}_EVENT_HANDLER">-->
|
|
35
|
+
<!-- <groupId>{{upperCase appName}}</groupId>-->
|
|
36
|
+
<!-- <start>true</start>-->
|
|
37
|
+
<!-- <options>-Xmx512m -DRedirectStreamsToLog=true -DXSD_VALIDATE=false</options>-->
|
|
38
|
+
<!-- <module>genesis-pal-eventhandler</module>-->
|
|
39
|
+
<!-- <package>global.genesis.eventhandler.pal</package>-->
|
|
40
|
+
<!-- <script>{{appName}}-eventhandler.kts</script>-->
|
|
41
|
+
<!-- <description>Handles events</description>-->
|
|
42
|
+
<!-- <classpath>{{appName}}-app*</classpath>-->
|
|
43
|
+
<!-- <language>pal</language>-->
|
|
44
|
+
<!-- </process>-->
|
|
45
|
+
<!-- <process name="{{upperCase appName}}_CONSOLIDATOR">-->
|
|
46
|
+
<!-- <groupId>{{upperCase appName}}</groupId>-->
|
|
47
|
+
<!-- <start>true</start>-->
|
|
48
|
+
<!-- <options>-Xmx256m -DRedirectStreamsToLog=true -DXSD_VALIDATE=false</options>-->
|
|
49
|
+
<!-- <module>consolidator2</module>-->
|
|
50
|
+
<!-- <package>global.genesis.consolidator2</package>-->
|
|
51
|
+
<!-- <config>{{appName}}-consolidator2.xml</config>-->
|
|
52
|
+
<!-- <loggingLevel>INFO,DATADUMP_OFF</loggingLevel>-->
|
|
53
|
+
<!-- </process>-->
|
|
54
|
+
<!-- <process name="{{upperCase appName}}_STREAMER">-->
|
|
55
|
+
<!-- <groupId>{{upperCase appName}}</groupId>-->
|
|
56
|
+
<!-- <start>true</start>-->
|
|
57
|
+
<!-- <options>-Xmx128m -DXSD_VALIDATE=false</options>-->
|
|
58
|
+
<!-- <module>genesis-pal-streamer</module>-->
|
|
59
|
+
<!-- <package>global.genesis.streamer.pal</package>-->
|
|
60
|
+
<!-- <script>{{appName}}-streamer.kts</script>-->
|
|
61
|
+
<!-- <loggingLevel>INFO,DATADUMP_OFF</loggingLevel>-->
|
|
62
|
+
<!-- <language>pal</language>-->
|
|
63
|
+
<!-- </process>-->
|
|
64
|
+
<!-- <process name="{{upperCase appName}}_STREAMER_CLIENT">-->
|
|
65
|
+
<!-- <groupId>{{upperCase appName}}</groupId>-->
|
|
66
|
+
<!-- <start>true</start>-->
|
|
67
|
+
<!-- <options>-Xmx128m -DXSD_VALIDATE=false</options>-->
|
|
68
|
+
<!-- <module>genesis-pal-streamerclient</module>-->
|
|
69
|
+
<!-- <package>global.genesis.streamerclient.pal</package>-->
|
|
70
|
+
<!-- <script>{{appName}}-streamer-client.kts</script>-->
|
|
71
|
+
<!-- <loggingLevel>INFO,DATADUMP_OFF</loggingLevel>-->
|
|
72
|
+
<!-- <language>pal</language>-->
|
|
73
|
+
<!-- </process>-->
|
|
74
|
+
<!-- <process name="GENESIS_EVALUATOR">-->
|
|
75
|
+
<!-- <start>true</start>-->
|
|
76
|
+
<!-- <groupId>GENESIS</groupId>-->
|
|
77
|
+
<!-- <options>-Xmx512m -DXSD_VALIDATE=false</options>-->
|
|
78
|
+
<!-- <module>genesis-evaluator</module>-->
|
|
79
|
+
<!-- <primaryOnly>true</primaryOnly>-->
|
|
80
|
+
<!-- <package>global.genesis.eventhandler,global.genesis.evaluator</package>-->
|
|
81
|
+
<!-- </process>-->
|
|
82
|
+
<!-- <process name="{{upperCase appName}}_DATAPIPELINE">-->
|
|
83
|
+
<!-- <groupId>{{upperCase appName}}</groupId>-->
|
|
84
|
+
<!-- <start>true</start>-->
|
|
85
|
+
<!-- <options>-Xmx256m -DRedirectStreamsToLog=true -DXSD_VALIDATE=false</options>-->
|
|
86
|
+
<!-- <module>genesis-pal-datapipeline</module>-->
|
|
87
|
+
<!-- <package>global.genesis.datapipeline.pal</package>-->
|
|
88
|
+
<!-- <script>{{appName}}-data-pipeline.kts</script>-->
|
|
89
|
+
<!-- <description>External data ingress pipeline</description>-->
|
|
90
|
+
<!-- <language>pal</language>-->
|
|
91
|
+
<!-- <loggingLevel>TRACE,DATADUMP_ON</loggingLevel>-->
|
|
92
|
+
<!-- </process>-->
|
|
93
|
+
</processes>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
!
|
|
3
|
+
! System : Genesis Business Library
|
|
4
|
+
! Sub-System : multi-pro-code-test Configuration
|
|
5
|
+
! Version : 1.0
|
|
6
|
+
! Copyright : (c) Genesis
|
|
7
|
+
! Date : 2022-03-18
|
|
8
|
+
! Function : Provide Service Definitions Config for multi-pro-code-test.
|
|
9
|
+
!
|
|
10
|
+
! Modification History
|
|
11
|
+
!
|
|
12
|
+
-->
|
|
13
|
+
<configuration>
|
|
14
|
+
<!-- <service host="localhost" name="{{upperCase appName}}_DATASERVER" port="11000"/>-->
|
|
15
|
+
<!-- <service host="localhost" name="{{upperCase appName}}_REQUEST_SERVER" port="11001"/>-->
|
|
16
|
+
<!-- <service host="localhost" name="{{upperCase appName}}_EVENT_HANDLER" port="11002"/>-->
|
|
17
|
+
<!-- <service host="localhost" name="{{upperCase appName}}_CONSOLIDATOR" port="11003"/>-->
|
|
18
|
+
<!-- <service host="localhost" name="{{upperCase appName}}_FGW" port ="11004"/>-->
|
|
19
|
+
<!-- <service host="localhost" name="{{upperCase appName}}_FGW_STREAMER" port ="11005"/>-->
|
|
20
|
+
<!-- <service host="localhost" name="{{upperCase appName}}_FGW_STREAMER_CLIENT" port ="11006"/>-->
|
|
21
|
+
<!-- <service host="localhost" name="GENESIS_EVALUATOR" port="11007"/>-->
|
|
22
|
+
<!-- <service host="localhost" name="{{upperCase appName}}_DATAPIPELINE" port="11008"/>-->
|
|
23
|
+
</configuration>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
package scripts
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* System : {{appName}}
|
|
6
|
+
* Sub-System : {{appName}} Configuration
|
|
7
|
+
* Version : 1.0
|
|
8
|
+
* Copyright : (c) GENESIS
|
|
9
|
+
* Date : 2021-09-07
|
|
10
|
+
*
|
|
11
|
+
* Function : Provide Consolidator Configuration for {{appName}}.
|
|
12
|
+
*
|
|
13
|
+
* Modification History
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
consolidators {
|
|
18
|
+
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
package scripts
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* System : {{appName}}
|
|
6
|
+
* Sub-System : {{appName}} Configuration
|
|
7
|
+
* Version : 1.0
|
|
8
|
+
* Copyright : (c) GENESIS
|
|
9
|
+
* Date : 2021-09-07
|
|
10
|
+
*
|
|
11
|
+
* Function : Provide Data Pipeline Configuration for {{appName}}.
|
|
12
|
+
*
|
|
13
|
+
* Modification History
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
pipelines {
|
|
18
|
+
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
package scripts
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* System : {{appName}}
|
|
6
|
+
* Sub-System : {{appName}} Configuration
|
|
7
|
+
* Version : 1.0
|
|
8
|
+
* Copyright : (c) GENESIS
|
|
9
|
+
* Date : 2021-09-07
|
|
10
|
+
*
|
|
11
|
+
* Function : Provide Data Server Configuration for {{appName}}.
|
|
12
|
+
*
|
|
13
|
+
* Modification History
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
dataServer {
|
|
18
|
+
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
package scripts
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* System : {{appName}}
|
|
6
|
+
* Sub-System : {{appName}} Configuration
|
|
7
|
+
* Version : 1.0
|
|
8
|
+
* Copyright : (c) GENESIS
|
|
9
|
+
* Date : 2021-09-07
|
|
10
|
+
*
|
|
11
|
+
* Function : Provide Event Handler configuration for {{appName}}.
|
|
12
|
+
*
|
|
13
|
+
* Modification History
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
eventHandler {
|
|
18
|
+
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
package scripts
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* System : {{appName}}
|
|
6
|
+
* Sub-System : {{appName}} Configuration
|
|
7
|
+
* Version : 1.0
|
|
8
|
+
* Copyright : (c) GENESIS
|
|
9
|
+
* Date : 2021-09-07
|
|
10
|
+
*
|
|
11
|
+
* Function : Provide Request Server configuration for {{appName}}.
|
|
12
|
+
*
|
|
13
|
+
* Modification History
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
requestReplies {
|
|
18
|
+
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
package scripts
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* System : {{appName}}
|
|
6
|
+
* Sub-System : {{appName}} Configuration
|
|
7
|
+
* Version : 1.0
|
|
8
|
+
* Copyright : (c) GENESIS
|
|
9
|
+
* Date : 2021-09-07
|
|
10
|
+
*
|
|
11
|
+
* Function : Provide Streamer Client Configuration for {{appName}}.
|
|
12
|
+
*
|
|
13
|
+
* Modification History
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
streamerClients {
|
|
18
|
+
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
package scripts
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* System : {{appName}}
|
|
6
|
+
* Sub-System : {{appName}} Configuration
|
|
7
|
+
* Version : 1.0
|
|
8
|
+
* Copyright : (c) GENESIS
|
|
9
|
+
* Date : 2021-09-07
|
|
10
|
+
*
|
|
11
|
+
* Function : Provide Streamer Configuration for {{appName}}.
|
|
12
|
+
*
|
|
13
|
+
* Modification History
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
streams {
|
|
18
|
+
|
|
19
|
+
}
|
package/settings.gradle.kts
CHANGED
|
@@ -1,35 +1,5 @@
|
|
|
1
|
-
rootProject.name = "{{appName}}"
|
|
2
|
-
|
|
3
1
|
// servers
|
|
4
|
-
includeBuild("server
|
|
5
|
-
name = "genesisproduct-{{appName}}"
|
|
6
|
-
}
|
|
2
|
+
includeBuild("server")
|
|
7
3
|
|
|
8
4
|
// clients
|
|
9
5
|
includeBuild("client")
|
|
10
|
-
|
|
11
|
-
buildCache {
|
|
12
|
-
local {
|
|
13
|
-
directory = File(rootDir, "build-cache")
|
|
14
|
-
removeUnusedEntriesAfterDays = 30
|
|
15
|
-
isEnabled = true
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
pluginManagement {
|
|
20
|
-
repositories {
|
|
21
|
-
gradlePluginPortal()
|
|
22
|
-
maven {
|
|
23
|
-
val repoUrl = if(extra.properties["clientSpecific"] == "true") {
|
|
24
|
-
"https://genesisglobal.jfrog.io/genesisglobal/libs-release-client"
|
|
25
|
-
} else {
|
|
26
|
-
"https://genesisglobal.jfrog.io/genesisglobal/dev-repo"
|
|
27
|
-
}
|
|
28
|
-
url = uri(repoUrl)
|
|
29
|
-
credentials {
|
|
30
|
-
username = extra.properties["genesisArtifactoryUser"].toString()
|
|
31
|
-
password = extra.properties["genesisArtifactoryPassword"].toString()
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
package/server/jvm/README.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Genesis Product multi-pro-code-test
|
|
2
|
-
|
|
3
|
-
If you choose name of the project as **multi-pro-code-test**
|
|
4
|
-
|
|
5
|
-
# Project structure
|
|
6
|
-
|
|
7
|
-
1. multi-pro-code-test-config -> holds the configuration, including the dictionary(fields, tables, views, -processes.xml, -service-definition, -system-definition)
|
|
8
|
-
2. multi-pro-code-test-script-config -> holds the scripts configuration(data-servers, request-replies and event-handlers scripts)
|
|
9
|
-
3. multi-pro-code-test-messages -> holds the message classes used in other modules e.g. eventhandler
|
|
10
|
-
4. multi-pro-code-test-eventhandler -> holds eventhandler classes(If you want to add custom-event-handlers)
|
|
11
|
-
5. multi-pro-code-test-dictionary-cache -> generates dao classes
|
|
12
|
-
6. multi-pro-code-test-distribution -> builds the distribution zip
|
|
13
|
-
|
|
14
|
-
# Adding modules
|
|
15
|
-
|
|
16
|
-
Please make sure to add new modules as a dependency to multi-pro-code-test-distribution
|
|
17
|
-
|
|
18
|
-
# Build generated code
|
|
19
|
-
|
|
20
|
-
To build the generated code, please run `gradle build` on multi-pro-code-test-dictionary-cache, this will generated
|
|
21
|
-
the following jars:
|
|
22
|
-
|
|
23
|
-
* genesis-generated-sysdef
|
|
24
|
-
* genesis-generated-fields
|
|
25
|
-
* genesis-generated-dao
|
|
26
|
-
* genesis-generated-hft
|
|
27
|
-
* genesis-generated-view
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
source /home/{{appName}}/.bashrc
|
|
3
|
-
/usr/pgsql-14/bin/postgresql-14-setup initdb
|
|
4
|
-
sed -E -i 's/local([[:space:]]+)all([[:space:]]+)all([[:space:]]+)peer/local\1all\2all\3trust/' /var/lib/pgsql/14/data/pg_hba.conf
|
|
5
|
-
sed -i 's/\(host *all *all *127.0.0.1\/32 *\)ident/\1trust/' /var/lib/pgsql/14/data/pg_hba.conf
|
|
6
|
-
sed -i 's/\(host *all *all *::1\/128 *\)ident/\1trust/' /var/lib/pgsql/14/data/pg_hba.conf
|
|
7
|
-
sed -i -e"s/^#listen_addresses =.*$/listen_addresses = '*'/" /var/lib/pgsql/14/data/postgresql.conf
|
|
8
|
-
sed -r -i "s/[#]*\s*max_connections\s*=.*/max_connections = 1024/" /var/lib/pgsql/14/data/postgresql.conf
|
|
9
|
-
echo "host all all 0.0.0.0/0 trust" >> /var/lib/pgsql/14/data/pg_hba.conf
|
|
10
|
-
systemctl enable postgresql-14
|
|
11
|
-
systemctl start postgresql-14
|
|
12
|
-
psql -U postgres -c "ALTER USER postgres password 'postgres';"
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
source /home/{{appName}}/.bashrc
|
|
3
|
-
systemctl start postgresql-14
|
|
4
|
-
|
|
5
|
-
postgres_status=$(systemctl status postgresql-14)
|
|
6
|
-
echo $postgres_status
|
|
7
|
-
postgres_error=$(echo "$postgres_status" | grep -E "failed|inactive")
|
|
8
|
-
if [[ ! -z "postgres_error" ]]
|
|
9
|
-
then
|
|
10
|
-
systemctl restart postgresql-14
|
|
11
|
-
fi
|
|
12
|
-
|
|
13
|
-
until PGPASSWORD="postgres" psql -h "$host" -U "postgres" -c '\q'; do
|
|
14
|
-
>&2 echo "Postgres is unavailable - sleeping"
|
|
15
|
-
sleep 1
|
|
16
|
-
done
|
|
17
|
-
|
|
18
|
-
systemctl status postgresql-14
|
|
19
|
-
|
|
20
|
-
su -c "source /home/{{appName}}/.bashrc ; yes | remap --commit" - "{{appName}}"
|
|
21
|
-
su -c "JvmRun global.genesis.environment.scripts.SendTable -t USER -f /home/{{appName}}/run/site-specific/data/user.csv" - "{{appName}}"
|
|
22
|
-
|
|
23
|
-
echo "remap done"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
kotlin.code.style=official
|
|
2
|
-
org.gradle.jvmargs=-Xmx6g -Xss512k -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -XX:+UseStringDeduplication -XX:ReservedCodeCacheSize=512m -Dkotlin.daemon.jvm.options=-Xmx2g -Dfile.encoding=UTF-8
|
|
3
|
-
bundleGeneratedClasses=true
|
|
4
|
-
genesisVersion={{versions.GSF}}
|
|
5
|
-
authVersion={{versions.Auth}}
|
|
6
|
-
deployPluginVersion={{versions.GSF}}
|
|
7
|
-
genesisArtifactoryPath=https://genesisglobal.jfrog.io/genesisglobal/libs-release-client
|
|
8
|
-
enableGenesisIntellijHelperTasks=true
|
|
9
|
-
clientSpecific=true
|
|
10
|
-
org.gradle.caching=true
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
dependencies {
|
|
2
|
-
compileOnly("global.genesis:genesis-dictionary")
|
|
3
|
-
compileOnly("global.genesis:genesis-process")
|
|
4
|
-
compileOnly("global.genesis:genesis-pal-execution")
|
|
5
|
-
compileOnly(project(path = ":{{appName}}-dictionary-cache", configuration = "codeGen"))
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
description = "{{appName}}-config"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Please don't delete me, I help Intellij recognise GPAL files correctly :)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
!
|
|
3
|
-
! System : Genesis Business Library
|
|
4
|
-
! Sub-System : multi-pro-code-test Configuration
|
|
5
|
-
! Version : 1.0
|
|
6
|
-
! Copyright : (c) Genesis
|
|
7
|
-
! Date : 2022-03-18
|
|
8
|
-
! Function : Provide Process Definitions Config for multi-pro-code-test.
|
|
9
|
-
!
|
|
10
|
-
! Modification History
|
|
11
|
-
!
|
|
12
|
-
-->
|
|
13
|
-
<processes>
|
|
14
|
-
|
|
15
|
-
</processes>
|
package/server/jvm/{{appName}}-config/src/main/resources/cfg/{{appName}}-service-definitions.xml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
!
|
|
3
|
-
! System : Genesis Business Library
|
|
4
|
-
! Sub-System : multi-pro-code-test Configuration
|
|
5
|
-
! Version : 1.0
|
|
6
|
-
! Copyright : (c) Genesis
|
|
7
|
-
! Date : 2022-03-18
|
|
8
|
-
! Function : Provide Service Definitions Config for multi-pro-code-test.
|
|
9
|
-
!
|
|
10
|
-
! Modification History
|
|
11
|
-
!
|
|
12
|
-
-->
|
|
13
|
-
<configuration>
|
|
14
|
-
|
|
15
|
-
</configuration>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
plugins {
|
|
2
|
-
id("global.genesis.deploy")
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
description = "{{appName}}-deploy"
|
|
6
|
-
|
|
7
|
-
dependencies {
|
|
8
|
-
genesisServer(
|
|
9
|
-
group = "global.genesis",
|
|
10
|
-
name = "genesis-distribution",
|
|
11
|
-
version = properties["genesisVersion"].toString(),
|
|
12
|
-
classifier = "bin",
|
|
13
|
-
ext = "zip"
|
|
14
|
-
)
|
|
15
|
-
genesisServer(
|
|
16
|
-
group = "global.genesis",
|
|
17
|
-
name = "auth-distribution",
|
|
18
|
-
version = properties["authVersion"].toString(),
|
|
19
|
-
classifier = "bin",
|
|
20
|
-
ext = "zip"
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
genesisServer(project(":{{appName}}-distribution", "distribution"))
|
|
24
|
-
genesisServer(project(":{{appName}}-site-specific", "distribution"))
|
|
25
|
-
genesisWeb(":client")
|
|
26
|
-
|
|
27
|
-
api(project(":{{appName}}-eventhandler"))
|
|
28
|
-
api(project(":{{appName}}-messages"))
|
|
29
|
-
// Add additional dependencies on other external distributions here
|
|
30
|
-
}
|
|
31
|
-
tasks {
|
|
32
|
-
copyDependencies {
|
|
33
|
-
enabled = false
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Add your genesis config dependencies here
|
|
3
|
-
dependencies {
|
|
4
|
-
implementation(project(":{{appName}}-dictionary-cache:{{appName}}-generated-dao"))
|
|
5
|
-
implementation(project(":{{appName}}-dictionary-cache:{{appName}}-generated-fields"))
|
|
6
|
-
implementation(project(":{{appName}}-dictionary-cache:{{appName}}-generated-hft"))
|
|
7
|
-
implementation(project(":{{appName}}-dictionary-cache:{{appName}}-generated-sysdef"))
|
|
8
|
-
implementation(project(":{{appName}}-dictionary-cache:{{appName}}-generated-view"))
|
|
9
|
-
|
|
10
|
-
implementation("global.genesis:auth-config:${properties["authVersion"]}")
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
description = "{{appName}}-dictionary-cache"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
description = "{{appName}}-generated-dao"
|
package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-fields/build.gradle.kts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
description = "{{appName}}-generated-fields"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
description = "{{appName}}-generated-hft"
|
package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-sysdef/build.gradle.kts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
description = "{{appName}}-generated-sysdef"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
description = "genesis-generated-view"
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
plugins {
|
|
2
|
-
distribution
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
dependencies {
|
|
6
|
-
implementation(project(":{{appName}}-config"))
|
|
7
|
-
implementation(project(":{{appName}}-dictionary-cache"))
|
|
8
|
-
implementation(project(":{{appName}}-eventhandler"))
|
|
9
|
-
implementation(project(":{{appName}}-messages"))
|
|
10
|
-
implementation(project(":{{appName}}-script-config"))
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
description = "{{appName}}-distribution"
|
|
14
|
-
|
|
15
|
-
distributions {
|
|
16
|
-
main {
|
|
17
|
-
contents {
|
|
18
|
-
// Octal conversion for file permissions
|
|
19
|
-
val libPermissions = "600".toInt(8)
|
|
20
|
-
val scriptPermissions = "700".toInt(8)
|
|
21
|
-
into("{{appName}}/bin") {
|
|
22
|
-
from(configurations.runtimeClasspath)
|
|
23
|
-
exclude("{{appName}}-config*.jar")
|
|
24
|
-
exclude("{{appName}}-script-config*.jar")
|
|
25
|
-
exclude("{{appName}}-distribution*.jar")
|
|
26
|
-
include("{{appName}}-*.jar")
|
|
27
|
-
}
|
|
28
|
-
into("{{appName}}/lib") {
|
|
29
|
-
from("${project.rootProject.buildDir}/dependencies")
|
|
30
|
-
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
31
|
-
|
|
32
|
-
exclude("genesis-*.jar")
|
|
33
|
-
exclude("{{appName}}-*.jar")
|
|
34
|
-
exclude("*.zip")
|
|
35
|
-
|
|
36
|
-
fileMode = libPermissions
|
|
37
|
-
}
|
|
38
|
-
into("{{appName}}/cfg") {
|
|
39
|
-
from("${project.rootProject.projectDir}/{{appName}}-config/src/main/resources/cfg")
|
|
40
|
-
from(project.layout.buildDirectory.dir("generated/product-details"))
|
|
41
|
-
filter(
|
|
42
|
-
org.apache.tools.ant.filters.FixCrLfFilter::class,
|
|
43
|
-
"eol" to org.apache.tools.ant.filters.FixCrLfFilter.CrLf.newInstance("lf")
|
|
44
|
-
)
|
|
45
|
-
}
|
|
46
|
-
into("{{appName}}/scripts") {
|
|
47
|
-
from("${project.rootProject.projectDir}/{{appName}}-config/src/main/resources/scripts")
|
|
48
|
-
from("${project.rootProject.projectDir}/{{appName}}-script-config/src/main/resources/scripts")
|
|
49
|
-
filter(
|
|
50
|
-
org.apache.tools.ant.filters.FixCrLfFilter::class,
|
|
51
|
-
"eol" to org.apache.tools.ant.filters.FixCrLfFilter.CrLf.newInstance("lf")
|
|
52
|
-
)
|
|
53
|
-
fileMode = scriptPermissions
|
|
54
|
-
}
|
|
55
|
-
// Removes intermediate folder called with the same name as the zip archive.
|
|
56
|
-
into("/")
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
val distribution by configurations.creating {
|
|
62
|
-
isCanBeConsumed = true
|
|
63
|
-
isCanBeResolved = false
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// To give custom name to the distribution package
|
|
67
|
-
tasks {
|
|
68
|
-
distZip {
|
|
69
|
-
archiveBaseName.set("genesisproduct-{{appName}}")
|
|
70
|
-
archiveClassifier.set("bin")
|
|
71
|
-
archiveExtension.set("zip")
|
|
72
|
-
inputs.files(rootProject.getTasksByName("copyDependencies", true))
|
|
73
|
-
}
|
|
74
|
-
distTar {
|
|
75
|
-
enabled = false
|
|
76
|
-
}
|
|
77
|
-
copyDependencies {
|
|
78
|
-
enabled = false
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
artifacts {
|
|
83
|
-
val distzip = tasks.distZip.get()
|
|
84
|
-
add("distribution", distzip.archiveFile) {
|
|
85
|
-
builtBy(distzip)
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
publishing {
|
|
90
|
-
publications {
|
|
91
|
-
create<MavenPublication>("{{appName}}ServerDistribution") {
|
|
92
|
-
artifact(tasks.distZip.get())
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
description = "{{appName}}-distribution"
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
dependencies {
|
|
2
|
-
implementation("global.genesis:genesis-pal-execution")
|
|
3
|
-
implementation("global.genesis:genesis-eventhandler")
|
|
4
|
-
implementation(project(":{{appName}}-messages"))
|
|
5
|
-
api("global.genesis:genesis-db")
|
|
6
|
-
compileOnly(project(":{{appName}}-config"))
|
|
7
|
-
compileOnly(project(path = ":{{appName}}-dictionary-cache", configuration = "codeGen"))
|
|
8
|
-
testImplementation("global.genesis:genesis-dbtest")
|
|
9
|
-
testImplementation("global.genesis:genesis-testsupport")
|
|
10
|
-
testImplementation(project(path = ":{{appName}}-dictionary-cache", configuration = "codeGen"))
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
description = "{{appName}}-eventhandler"
|
package/server/jvm/{{appName}}-messages/src/main/kotlin/global/genesis/message/common/readme.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# place shared message types here
|
package/server/jvm/{{appName}}-messages/src/main/kotlin/global/genesis/message/event/readme.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# place event message types here
|
package/server/jvm/{{appName}}-messages/src/main/kotlin/global/genesis/message/request/readme.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# place request server message types here
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{{appName}}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
dependencies {
|
|
2
|
-
implementation("global.genesis:genesis-pal-execution")
|
|
3
|
-
compileOnly("global.genesis:genesis-dictionary")
|
|
4
|
-
api("global.genesis:genesis-pal-dataserver")
|
|
5
|
-
api("global.genesis:genesis-pal-requestserver")
|
|
6
|
-
api("global.genesis:genesis-pal-streamer")
|
|
7
|
-
api("global.genesis:genesis-pal-streamerclient")
|
|
8
|
-
api("global.genesis:genesis-pal-eventhandler")
|
|
9
|
-
compileOnly(project(path = ":{{appName}}-dictionary-cache", configuration = "codeGen"))
|
|
10
|
-
testCompileOnly(project(":{{appName}}-config"))
|
|
11
|
-
testImplementation("global.genesis:genesis-dbtest")
|
|
12
|
-
testImplementation("global.genesis:genesis-testsupport")
|
|
13
|
-
testImplementation(project(path = ":{{appName}}-dictionary-cache", configuration = "codeGen"))
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
description = "{{appName}}-script-config"
|