Commit 7a0fab3
feat: Update and adapt to GraalVM for JDK 23 (#2069)
* build(deps): update dependency com.google.cloud:native-image-shared-config to v1.14.0
* disable testDisconnectShouldNotWaitToReadResponse for JDK >= 23
* fix assumption code
* fix assumption ii
* Revert "fix assumption ii"
This reverts commit 2fbd4cb.
* Revert "fix assumption code"
This reverts commit d355740.
* Revert "disable testDisconnectShouldNotWaitToReadResponse for JDK >= 23"
This reverts commit e2c988e.
* chore: use JUnit4 in tests
this is basically not rely on extending TestCase
and using @test annotations
* use at least 1 Junit38 test
* Revert "use at least 1 Junit38 test"
This reverts commit 84f3f4f.
* fix net http response tests
* annotate tests with @RunWith(JUnit4.class)
* initialize static members in static block
* use static blocks to initialize test classes
* format
* set up class initialization
* convert google-http-client-test to JUnit4
* use java.nio for tests
* run with JUnit 4 explicitly
* use static block
* Revert "use static block"
This reverts commit 73ebee2.
* Reapply "use static block"
This reverts commit 06acc4a.
* initialize IS_WINDOWS at build time
* prevent cryptic message when initializing FileDataStoreFactory
* fix static initialization in AbstractDatastoreFactory
* test no IS_WINDOWS
* Revert "test no IS_WINDOWS"
This reverts commit 3f6483d.
* ruling out logger initialization
* add test output
* safe initialization of ID_PATTERN
* remove provided scope depdendency
* convert appengine transport to JUnit 4
* add clirr differences
* include appengine classes in runtime
this allows native compilation
* add native config
* add reflect-config for appengine
* use JUnit4 in GSON tests
* fix clirr
* port abstract json parser test to JUnit4
* remove unused imports
* update clirr again
* add native config to gson module
* convert jackson module to JUnit4
* make jackson factory instantiation native friendly
* config test-only build-time initialization
* adapt protocol buffers module to JUnit 4
* initialize test classes at test time
* convert xml module to JUnit4
* add test time initialization entries to xml module
* format
* restore debug setup
* add junit test time initialization flags
* add junit to gson deps
* add junit test-scoped dependency to jackson2 module
* add jackson factory to class initialization
this is due to one of the test classes statically initializing
this factory.
* add app engine feature
* try setup time feature registration
* Revert "try setup time feature registration"
This reverts commit eeb9352.
* Revert "add app engine feature"
This reverts commit e75875b.
* add app engine core lib for testing
this allows these classes to be included for native testing
* add test-scoped dep in test module
* use -Pnative-deps
* add conflicting dep in native-deps profile for appengine
* include appengine in graalvm tests
* restore static blocks in google-http-client
* restore static blocks in gson module
* restore static blocks in jackson
* restore static blocks in protobuf
* format
* restore static initailization in xml module
* restore static block in jackson module
* format
* remove app engine from test
---------
Co-authored-by: Mend Renovate <[email protected]>1 parent 2285bb1 commit 7a0fab3
File tree
93 files changed
+1562
-411
lines changed- .kokoro/presubmit
- google-http-client-appengine
- src
- main/resources/META-INF/native-image/com.google.http-client/google-http-client-appengine
- test
- java/com/google/api/client/extensions/appengine/http
- resources/META-INF/native-image/com.google.http-client/google-http-client-appengine
- google-http-client-gson
- src/test
- java/com/google/api/client/json/gson
- resources/META-INF/native-image/com.google.http-client/google-http-client-gson
- google-http-client-jackson2
- src/test
- java/com/google/api/client/json/jackson2
- resources/META-INF/native-image/com.google.http-client/google-http-client-jackson2
- google-http-client-protobuf/src
- main/resources/META-INF/native-image/com.google.http-client/google-http-client-protobuf
- test/java/com/google/api/client/protobuf
- google-http-client-test
- src
- main
- java/com/google/api/client/test
- json
- util/store
- resources/META-INF/native-image/com.google.http-client/google-http-client-test
- test/java/com/google/api/client/test/util/store
- google-http-client-xml/src/test
- java/com/google/api/client/xml
- resources/META-INF/native-image/com.google.http-client/google-http-client-xml
- google-http-client/src
- main/java/com/google/api/client/util/store
- test
- java/com/google/api/client
- http
- javanet
- json
- webtoken
- testing
- http
- javanet
- util
- util
- escape
- resources/META-INF/native-image/com.google.http-client/google-http-client
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
93 files changed
+1562
-411
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
93 | 104 | | |
Lines changed: 47 additions & 0 deletions
| 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 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| |||
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| 109 | + | |
104 | 110 | | |
105 | 111 | | |
106 | 112 | | |
| |||
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
| 122 | + | |
116 | 123 | | |
117 | 124 | | |
118 | 125 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
0 commit comments