Commit 81b34b6
authored
Cleanup nessie-client (#7516)
Cleanup the packages and especially the public facing client API and enhance the ability to configure a Nessie client instance.
`NessieClientBuilder` related changes:
* Use Java system properties, process environment, a (new) Nessie client config file and a dot-env file as configuration sources. Can later be extended to allow encrypted configuration values (think: bearer tokens, passwords, etc) and expressions by using SmallRye Config.
* Refactor `NessieClientBuilder` to use the Java services API, so it's easier to pull in custom implementations.
* Make `NessieClientBuilder` a "pure interface", add abstract base class(es) for implementations.
* Remove the generic type arg from `NessieClientBuilder`, because it's irrelevant for integrations, added a generic `asInstanceOf()` for special cases.
* Move configuration via string key-value pairs (`fromConfig()` functions) to the introduced abstract base classes.
Nessie API implementation related changes:
* Move REST/API-v1 code to the new `org.projectnessie.client.rest.v1` package.
* Move REST/API-v2 code to the new `org.projectnessie.client.rest.v2` package.
* Let the `org.projectnessie.client.http` itself only contain types for HTTP, except the legacy `HttpClientBuilder`, which is now deprecated for removal.
* Remove old, Java streams related baggage (restricts compatibility tests to 0.31.0 or newer).
* Move "common" client-side namsepace handling out of the REST-v2 implementation.
* Fix an oversight in the REST-v2 implementation for tag deletion.
Content-generator tool change:
* Add option for Nessie client name
* Add option for Nessie client builder properties
GC tool change:
* Add option for Nessie client name
Test support change:
* add `NessieClientNameResolver` interface for test classes1 parent 91ca867 commit 81b34b6
File tree
104 files changed
+2220
-1089
lines changed- .github/workflows
- api
- client-testextension/src/main/java/org/projectnessie/client/ext
- client/src
- main
- java/org/projectnessie/client
- api
- ns
- auth
- builder
- config
- http
- impl/jdk11
- v2api
- rest
- v1
- v2
- resources/META-INF/services
- test/java/org/projectnessie/client
- builder
- config
- http
- rest/v1
- compatibility/common/src
- main/java/org/projectnessie/tools/compatibility/internal
- test/java/org/projectnessie/tools/compatibility/internal
- gc/gc-tool/src/main/java/org/projectnessie/gc/tool/cli/options
- integrations/iceberg-views/src/main/java/org/apache/iceberg/nessie
- perftest
- gatling/src/main/scala/org/projectnessie/perftest/gatling
- simulations/src/gatling/scala/org/projectnessie/perftest/gatling
- servers
- jax-rs-testextension/src/test
- java/org/projectnessie/jaxrs/ext/customclient
- resources/META-INF/services
- jax-rs-tests/src/test/java/org/projectnessie/jaxrs/tests
- quarkus-server/src
- testFixtures/java/org/projectnessie/server
- test/java/org/projectnessie/server
- site/docs/develop
- tools/content-generator/src
- main/java/org/projectnessie/tools/contentgenerator/cli
- testFixtures/java/org/projectnessie/tools/contentgenerator
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
104 files changed
+2220
-1089
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
| 695 | + | |
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
Lines changed: 40 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 | + | |
Lines changed: 25 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
92 | 104 | | |
93 | 105 | | |
94 | 106 | | |
| |||
118 | 130 | | |
119 | 131 | | |
120 | 132 | | |
121 | | - | |
| 133 | + | |
122 | 134 | | |
123 | 135 | | |
124 | 136 | | |
| |||
132 | 144 | | |
133 | 145 | | |
134 | 146 | | |
135 | | - | |
| 147 | + | |
136 | 148 | | |
137 | 149 | | |
138 | 150 | | |
| 151 | + | |
139 | 152 | | |
| 153 | + | |
140 | 154 | | |
141 | 155 | | |
142 | 156 | | |
143 | 157 | | |
144 | 158 | | |
| 159 | + | |
145 | 160 | | |
146 | 161 | | |
147 | 162 | | |
| 163 | + | |
148 | 164 | | |
149 | 165 | | |
150 | 166 | | |
| |||
158 | 174 | | |
159 | 175 | | |
160 | 176 | | |
161 | | - | |
| 177 | + | |
| 178 | + | |
162 | 179 | | |
163 | 180 | | |
164 | 181 | | |
165 | | - | |
166 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
167 | 185 | | |
168 | 186 | | |
169 | 187 | | |
170 | 188 | | |
171 | | - | |
| 189 | + | |
172 | 190 | | |
173 | 191 | | |
174 | 192 | | |
| |||
0 commit comments