@genesislcap/blank-app-seed 1.5.5 → 2.0.0

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.
Files changed (88) hide show
  1. package/.genx/package.json +1 -1
  2. package/.genx/prompts/server.js +10 -1
  3. package/.genx/prompts.js +2 -1
  4. package/.genx/tests/fixtures/testapp/docker-compose.yml +1 -1
  5. package/.genx/versions.json +3 -3
  6. package/.github/CODEOWNERS +1 -1
  7. package/.github/workflows/build.yml +2 -3
  8. package/.gitignore +3 -6
  9. package/.releaserc +1 -1
  10. package/CHANGELOG.md +11 -0
  11. package/build.gradle.kts +1 -1
  12. package/client/package.json +6 -2
  13. package/docker-compose.yml +1 -11
  14. package/gradle/wrapper/gradle-wrapper.properties +1 -1
  15. package/gradle.properties +1 -1
  16. package/gradlew +7 -7
  17. package/gradlew.bat +0 -0
  18. package/package.json +1 -1
  19. package/server/README.md +13 -0
  20. package/server/{jvm/build.gradle.kts → build.gradle.kts} +1 -14
  21. package/server/{jvm/gradle → gradle}/wrapper/gradle-wrapper.properties +1 -1
  22. package/server/gradle.properties +15 -0
  23. package/server/{jvm/gradlew → gradlew} +7 -7
  24. package/server/{jvm/gradlew.bat → gradlew.bat} +0 -0
  25. package/server/{jvm/settings.gradle.kts → settings.gradle.kts} +24 -31
  26. package/server/{{appName}}-app/build.gradle.kts +20 -0
  27. package/server/{jvm/{{appName}}-site-specific/src/main/resources → {{appName}}-app/src/main/genesis}/cfg/genesis-system-definition.kts +8 -11
  28. package/server/{{appName}}-app/src/main/genesis/cfg/{{appName}}-processes.xml +93 -0
  29. package/server/{{appName}}-app/src/main/genesis/cfg/{{appName}}-service-definitions.xml +23 -0
  30. package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-consolidator.kts +19 -0
  31. package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-data-pipeline.kts +19 -0
  32. package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-dataserver.kts +19 -0
  33. package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-eventhandler.kts +19 -0
  34. package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-reqrep.kts +19 -0
  35. package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-streamer-client.kts +19 -0
  36. package/server/{{appName}}-app/src/main/genesis/scripts/{{appName}}-streamer.kts +19 -0
  37. package/settings.gradle.kts +1 -31
  38. package/server/jvm/README.md +0 -27
  39. package/server/jvm/docker-scripts/configureDB.sh +0 -12
  40. package/server/jvm/docker-scripts/docker-entrypoint.sh +0 -7
  41. package/server/jvm/docker-scripts/genesisInstall.sh +0 -5
  42. package/server/jvm/docker-scripts/remap.sh +0 -23
  43. package/server/jvm/gradle.properties +0 -10
  44. package/server/jvm/{{appName}}-config/build.gradle.kts +0 -8
  45. package/server/jvm/{{appName}}-config/src/main/kotlin/donotdelete.txt +0 -1
  46. package/server/jvm/{{appName}}-config/src/main/resources/cfg/{{appName}}-processes.xml +0 -15
  47. package/server/jvm/{{appName}}-config/src/main/resources/cfg/{{appName}}-service-definitions.xml +0 -15
  48. package/server/jvm/{{appName}}-deploy/build.gradle.kts +0 -35
  49. package/server/jvm/{{appName}}-dictionary-cache/build.gradle.kts +0 -13
  50. package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-dao/build.gradle.kts +0 -1
  51. package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-fields/build.gradle.kts +0 -1
  52. package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-hft/build.gradle.kts +0 -1
  53. package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-sysdef/build.gradle.kts +0 -1
  54. package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-view/build.gradle.kts +0 -1
  55. package/server/jvm/{{appName}}-distribution/build.gradle.kts +0 -97
  56. package/server/jvm/{{appName}}-eventhandler/build.gradle.kts +0 -13
  57. package/server/jvm/{{appName}}-eventhandler/src/test/resources/GenesisHome/donotdelete.txt +0 -0
  58. package/server/jvm/{{appName}}-messages/build.gradle.kts +0 -6
  59. package/server/jvm/{{appName}}-messages/src/main/kotlin/global/genesis/message/common/readme.md +0 -1
  60. package/server/jvm/{{appName}}-messages/src/main/kotlin/global/genesis/message/event/readme.md +0 -1
  61. package/server/jvm/{{appName}}-messages/src/main/kotlin/global/genesis/message/request/readme.md +0 -1
  62. package/server/jvm/{{appName}}-messages/src/main/resources/META-INF/global/genesis/message/product-info +0 -1
  63. package/server/jvm/{{appName}}-script-config/build.gradle.kts +0 -16
  64. package/server/jvm/{{appName}}-script-config/src/main/kotlin/donotdelete.txt +0 -1
  65. package/server/jvm/{{appName}}-script-config/src/main/resources/scripts/{{appName}}-dataserver.kts +0 -13
  66. package/server/jvm/{{appName}}-script-config/src/main/resources/scripts/{{appName}}-eventhandler.kts +0 -13
  67. package/server/jvm/{{appName}}-script-config/src/main/resources/scripts/{{appName}}-reqrep.kts +0 -13
  68. package/server/jvm/{{appName}}-script-config/src/test/kotlin/GenesisTestSupportTest.kt +0 -23
  69. package/server/jvm/{{appName}}-script-config/src/test/resources/GenesisHome/donotdelete.txt +0 -0
  70. package/server/jvm/{{appName}}-site-specific/README.md +0 -3
  71. package/server/jvm/{{appName}}-site-specific/build.gradle.kts +0 -114
  72. package/server/jvm/{{appName}}-site-specific/src/main/kotlin/donotdelete.txt +0 -1
  73. package/server/nginx/Dockerfile +0 -5
  74. package/server/nginx/cert.crt +0 -20
  75. package/server/nginx/cert.key +0 -27
  76. package/server/nginx/default.conf +0 -40
  77. /package/.genx/tests/fixtures/testapp/server/jvm/{testapp-config/src/main/resources → testapp-app/src/main/genesis}/cfg/testapp-fields-dictionary.kts +0 -0
  78. /package/.genx/tests/fixtures/testapp/server/jvm/{testapp-config/src/main/resources → testapp-app/src/main/genesis}/cfg/testapp-processes.xml +0 -0
  79. /package/.genx/tests/fixtures/testapp/server/jvm/{testapp-config/src/main/resources → testapp-app/src/main/genesis}/cfg/testapp-service-definitions.xml +0 -0
  80. /package/.genx/tests/fixtures/testapp/server/jvm/{testapp-config/src/main/resources → testapp-app/src/main/genesis}/cfg/testapp-tables-dictionary.kts +0 -0
  81. /package/.genx/tests/fixtures/testapp/server/jvm/{testapp-script-config/src/main/resources → testapp-app/src/main/genesis}/scripts/testapp-dataserver.kts +0 -0
  82. /package/.genx/tests/fixtures/testapp/server/jvm/{testapp-script-config/src/main/resources → testapp-app/src/main/genesis}/scripts/testapp-eventhandler.kts +0 -0
  83. /package/server/{jvm/gradle → gradle}/wrapper/gradle-wrapper.jar +0 -0
  84. /package/server/{jvm/{{appName}}-config/src/main/resources → {{appName}}-app/src/main/genesis}/cfg/{{appName}}-fields-dictionary.kts +0 -0
  85. /package/server/{jvm/{{appName}}-config/src/main/resources → {{appName}}-app/src/main/genesis}/cfg/{{appName}}-system-definition.kts +0 -0
  86. /package/server/{jvm/{{appName}}-config/src/main/resources → {{appName}}-app/src/main/genesis}/cfg/{{appName}}-tables-dictionary.kts +0 -0
  87. /package/server/{jvm/{{appName}}-config/src/main/resources → {{appName}}-app/src/main/genesis}/cfg/{{appName}}-view-dictionary.kts +0 -0
  88. /package/server/{jvm/{{appName}}-site-specific/src/main/resources/data/user.csv → {{appName}}-app/src/main/genesis/data/USER.csv} +0 -0
@@ -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
+ }
@@ -1,35 +1,5 @@
1
- rootProject.name = "{{appName}}"
2
-
3
1
  // servers
4
- includeBuild("server/jvm") {
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
- }
@@ -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,7 +0,0 @@
1
- #!/bin/bash
2
- systemctl start postgresql-14
3
- systemctl enable sshd.service
4
- systemctl start sshd.service
5
- su -c "startServer" - "{{appName}}"
6
- echo "Logged as {{appName}}, starting server"
7
- tail -f /dev/null
@@ -1,5 +0,0 @@
1
- #!/bin/bash
2
- source /home/{{appName}}/.bashrc
3
- systemctl start postgresql-14
4
- su -c "source /home/{{appName}}/.bashrc ; genesisInstall" - "{{appName}}"
5
- echo "genesisInstall done"
@@ -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>
@@ -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"
@@ -1 +0,0 @@
1
- description = "{{appName}}-generated-fields"
@@ -1 +0,0 @@
1
- description = "{{appName}}-generated-hft"
@@ -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"
@@ -1,6 +0,0 @@
1
- dependencies {
2
- implementation("global.genesis:genesis-messages")
3
- compileOnly(project(path = ":{{appName}}-dictionary-cache", configuration = "codeGen"))
4
- }
5
-
6
- description = "{{appName}}-messages"
@@ -1 +0,0 @@
1
- # place shared message types here
@@ -1 +0,0 @@
1
- # place event message types here
@@ -1 +0,0 @@
1
- # place request server message types here
@@ -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"
@@ -1 +0,0 @@
1
- Please don't delete me, I help Intellij recognise GPAL files correctly :)
@@ -1,13 +0,0 @@
1
- /**
2
- * System : Genesis Business Library
3
- * Sub-System : multi-pro-code-test Configuration
4
- * Version : 1.0
5
- * Copyright : (c) Genesis
6
- * Date : 2022-03-18
7
- * Function : Provide dataserver config for multi-pro-code-test.
8
- *
9
- * Modification History
10
- */
11
- dataServer {
12
-
13
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * System : Genesis Business Library
3
- * Sub-System : multi-pro-code-test Configuration
4
- * Version : 1.0
5
- * Copyright : (c) Genesis
6
- * Date : 2022-03-18
7
- * Function : Provide event handler config for multi-pro-code-test.
8
- *
9
- * Modification History
10
- */
11
- eventHandler {
12
-
13
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * System : Genesis Business Library
3
- * Sub-System : multi-pro-code-test Configuration
4
- * Version : 1.0
5
- * Copyright : (c) Genesis
6
- * Date : 2022-03-18
7
- * Function : Provide request reply config for multi-pro-code-test.
8
- *
9
- * Modification History
10
- */
11
- requestReplies {
12
-
13
- }
@@ -1,23 +0,0 @@
1
- package global.genesis
2
-
3
- import global.genesis.commons.model.GenesisSet
4
- import global.genesis.dictionary.GenesisDictionary
5
- import global.genesis.testsupport.AbstractGenesisTestSupport
6
- import global.genesis.testsupport.GenesisTestConfig
7
- import org.junit.jupiter.api.Test
8
-
9
- class GenesisTestSupportTest : AbstractGenesisTestSupport<GenesisSet>(
10
- GenesisTestConfig {
11
- addPackageName("global.genesis.testsupport")
12
- genesisHome = "/GenesisHome/"
13
- parser = { it }
14
- }
15
- ) {
16
- override fun createDictionary(): GenesisDictionary = prodDictionary()
17
-
18
- @Test
19
- fun startsCorrectlyTest() {
20
- // Just to ensure it loads the Test Support/Cluster correctly
21
- println("Hello Test Support!!")
22
- }
23
- }
@@ -1,3 +0,0 @@
1
- # {{kebabCase pkgName}} App Server Site Specifics
2
-
3
-