@@ -111,6 +111,10 @@ under the License.
111111
112112 <derby .version>10.15.2.0</derby .version>
113113 <awaitility .version>4.2.2</awaitility .version>
114+
115+ <!-- valid options can be checked at https://central.sonatype.com/search?q=kubernetes-httpclient- currently: okhttp, jdk, jetty, vertx -->
116+ <!-- when using a value other than okhttp disable the `depend-on-okhttp4` profile as well. -->
117+ <fabric8 .httpclient.impl>okhttp</fabric8 .httpclient.impl>
114118 </properties >
115119
116120 <dependencyManagement >
@@ -129,6 +133,33 @@ under the License.
129133 <type >pom</type >
130134 <scope >import</scope >
131135 </dependency >
136+ <dependency >
137+ <groupId >io.fabric8</groupId >
138+ <artifactId >kubernetes-client</artifactId >
139+ <version >${fabric8.version} </version >
140+ <exclusions >
141+ <exclusion >
142+ <groupId >com.squareup.okhttp3</groupId >
143+ <artifactId >*</artifactId >
144+ </exclusion >
145+ <exclusion >
146+ <groupId >io.fabric8</groupId >
147+ <artifactId >kubernetes-httpclient-okhttp</artifactId >
148+ </exclusion >
149+ </exclusions >
150+ </dependency >
151+ <dependency >
152+ <groupId >io.fabric8</groupId >
153+ <artifactId >kubernetes-server-mock</artifactId >
154+ <version >${fabric8.version} </version >
155+ <scope >test</scope >
156+ <exclusions >
157+ <exclusion >
158+ <groupId >com.squareup.okhttp3</groupId >
159+ <artifactId >mockwebserver</artifactId >
160+ </exclusion >
161+ </exclusions >
162+ </dependency >
132163 </dependencies >
133164 </dependencyManagement >
134165
@@ -189,6 +220,19 @@ under the License.
189220 </plugins >
190221 </build >
191222 </profile >
223+ <profile >
224+ <id >depend-on-okhttp4</id >
225+ <activation >
226+ <activeByDefault >true</activeByDefault >
227+ </activation >
228+ <dependencies >
229+ <dependency >
230+ <groupId >com.squareup.okhttp3</groupId >
231+ <artifactId >okhttp</artifactId >
232+ <version >${okhttp.version} </version >
233+ </dependency >
234+ </dependencies >
235+ </profile >
192236 </profiles >
193237
194238 <build >
0 commit comments