|
48 | 48 | <slf4j.version>1.7.30</slf4j.version> |
49 | 49 | <maven.checkstyle.version>3.4.0</maven.checkstyle.version> |
50 | 50 | <junit.jupiter.version>5.14.0</junit.jupiter.version> |
| 51 | + <!-- OkHttp dependency coordinates — overridden by the test-okhttp4 profile --> |
| 52 | + <okhttp.artifactId>okhttp-jvm</okhttp.artifactId> |
| 53 | + <okhttp.version>5.0.0</okhttp.version> |
| 54 | + <okhttp.mockwebserver.version>5.0.0</okhttp.mockwebserver.version> |
51 | 55 | </properties> |
52 | 56 |
|
53 | 57 | <dependencies> |
54 | 58 | <dependency> |
55 | 59 | <groupId>com.squareup.okhttp3</groupId> |
56 | | - <artifactId>okhttp</artifactId> |
57 | | - <version>4.12.0</version> |
| 60 | + <artifactId>${okhttp.artifactId}</artifactId> |
| 61 | + <version>${okhttp.version}</version> |
58 | 62 | </dependency> |
59 | 63 | <dependency> |
60 | 64 | <groupId>com.jayway.jsonpath</groupId> |
|
157 | 161 | <dependency> |
158 | 162 | <groupId>com.squareup.okhttp3</groupId> |
159 | 163 | <artifactId>mockwebserver</artifactId> |
160 | | - <version>3.10.0</version> |
| 164 | + <version>${okhttp.mockwebserver.version}</version> |
161 | 165 | <scope>test</scope> |
162 | 166 | </dependency> |
163 | 167 | <dependency> |
|
173 | 177 | <version>1.14.17</version> |
174 | 178 | </dependency> |
175 | 179 | <dependency> |
176 | | - <groupId>com.github.gmazzo</groupId> |
177 | | - <artifactId>okhttp-mock</artifactId> |
178 | | - <version>1.4.1</version> |
| 180 | + <groupId>com.github.gmazzo.okhttp.mock</groupId> |
| 181 | + <artifactId>mock-client</artifactId> |
| 182 | + <version>2.0.0</version> |
179 | 183 | <scope>test</scope> |
180 | 184 | </dependency> |
181 | 185 | </dependencies> |
|
368 | 372 | </plugins> |
369 | 373 | </build> |
370 | 374 | </profile> |
| 375 | + <profile> |
| 376 | + <!-- |
| 377 | + Run the test suite against OkHttp 4.x to verify backward compatibility. |
| 378 | + Activate with: mvn test -P test-okhttp4 |
| 379 | + --> |
| 380 | + <id>test-okhttp4</id> |
| 381 | + <properties> |
| 382 | + <okhttp.artifactId>okhttp</okhttp.artifactId> |
| 383 | + <okhttp.version>4.12.0</okhttp.version> |
| 384 | + <okhttp.mockwebserver.version>4.12.0</okhttp.mockwebserver.version> |
| 385 | + </properties> |
| 386 | + </profile> |
371 | 387 | </profiles> |
372 | 388 | </project> |
0 commit comments