Commit 12f432c
authored
Wrap `
* Wrap ``--add-opens=java.base/java.nio=ALL-UNNAMED` as a default environment variable for the .sh script.
This is required to deal with Snowflake JDBC error https://community.snowflake.com/s/article/JDBC-Driver-Compatibility-Issue-With-JDK-16-and-Later , which recently re-emerged and is likely to re-emerge again.
* Preserve existing _JAVA_OPTIONS arguments
* Apply the env argument to dwh-migration-dumper application instead.
* Really apply the env argument to dwh-migration-dumper application instead.
* Let gradle build 2 versions of startup scripts for each app and add run-time logic to choose which one based on java version.
The two apps are dwh-migration-dumper and dwh-cloud-extractor. The versioning logic is applied in dwh-migration-dumper wrapper and in gce_launcher.sh script.
Maneually tested file generation and executing dwh-migration-dumper with different java versions.
Tested versions: java8, java11, java17
* Fix Gradle mysterious dependencies
* Fix Gradle mysterious dependencies
* Make the logic more readable.--add-opens=java.base/java.nio=ALL-UNNAMED as a default envir… (#364)1 parent 124ff2f commit 12f432c
File tree
4 files changed
+55
-3
lines changed- bin
- dumper/app
- src/main/sh
- cloud_extractor
4 files changed
+55
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
97 | 111 | | |
98 | 112 | | |
99 | 113 | | |
| |||
102 | 116 | | |
103 | 117 | | |
104 | 118 | | |
105 | | - | |
| 119 | + | |
106 | 120 | | |
107 | 121 | | |
108 | 122 | | |
109 | 123 | | |
110 | 124 | | |
111 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
112 | 135 | | |
113 | 136 | | |
114 | 137 | | |
| |||
551 | 574 | | |
552 | 575 | | |
553 | 576 | | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
554 | 585 | | |
555 | 586 | | |
556 | 587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
113 | 114 | | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments