Skip to content

Commit 911c5bf

Browse files
committed
Prepare for release 4.0.0.
1 parent fafcf4b commit 911c5bf

10 files changed

Lines changed: 27 additions & 19 deletions

File tree

CHANGELOG.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
Change Log
22
==========
33

4+
## Version 4.0.0
5+
6+
_2019-06-26_
7+
8+
**This release upgrades OkHttp to Kotlin.** We tried our best to make fast and safe to upgrade
9+
from OkHttp 3.x. We wrote an [upgrade guide][upgrading_to_okhttp_4] to help with the migration and a
10+
[blog post][okhttp4_blog_post] to explain it.
11+
12+
* Fix: Target Java 8 bytecode for Java and Kotlin.
13+
14+
415
## Version 4.0.0-RC3
516

617
_2019-06-24_
@@ -26,11 +37,7 @@ _2019-06-21_
2637

2738
_2019-06-03_
2839

29-
**OkHttp 4 upgrades OkHttp to Kotlin.** This is the first stable preview of OkHttp 4. Use it to find
30-
bugs or performance regressions before the final 4.0.0 release.
31-
32-
We tried our best to make it fast and safe to upgrade from OkHttp 3.x.
33-
[We even wrote a guide][upgrading_to_okhttp_4] to help you with it!
40+
* First stable preview of OkHttp 4.
3441

3542

3643
## Version 3.14.2
@@ -1794,7 +1801,7 @@ Initial release.
17941801
17951802
[brick]: https://noncombatant.org/2015/05/01/about-http-public-key-pinning/
17961803
[webdav]: https://tools.ietf.org/html/rfc4918
1797-
[major_versions]: http://jakewharton.com/java-interoperability-policy-for-major-version-updates/
1804+
[major_versions]: https://jakewharton.com/java-interoperability-policy-for-major-version-updates/
17981805
[nginx_959]: https://trac.nginx.org/nginx/ticket/959
17991806
[okhttp_idling_resource]: https://github.com/JakeWharton/okhttp-idling-resource
18001807
[bom]: https://en.wikipedia.org/wiki/Byte_order_mark
@@ -1808,7 +1815,8 @@ Initial release.
18081815
[require_android_5]: https://medium.com/square-corner-blog/okhttp-3-13-requires-android-5-818bb78d07ce
18091816
[obsolete_apache_client]: https://gist.github.com/swankjesse/09721f72039e3a46cf50f94323deb82d
18101817
[obsolete_url_factory]: https://gist.github.com/swankjesse/dd91c0a8854e1559b00f5fc9c7bfae70
1811-
[tls_configuration_history]: http://square.github.io/okhttp/tls_configuration_history/
1818+
[tls_configuration_history]: https://square.github.io/okhttp/tls_configuration_history/
18121819
[grpc_http2]: https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md
1813-
[upgrading_to_okhttp_4]: http://square.github.io/okhttp/upgrading_to_okhttp_4/
1814-
[interceptors]: http://square.github.io/okhttp/interceptors/
1820+
[upgrading_to_okhttp_4]: https://square.github.io/okhttp/upgrading_to_okhttp_4/
1821+
[interceptors]: https://square.github.io/okhttp/interceptors/
1822+
[okhttp4_blog_post]: https://cashapp.github.io/2019-06-26/okhttp-4-goes-kotlin

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Releases
100100
Our [change log][changelog] has release history.
101101

102102
```kotlin
103-
implementation("com.squareup.okhttp3:okhttp:3.14.2")
103+
implementation("com.squareup.okhttp3:okhttp:4.0.0")
104104
```
105105

106106
Snapshot builds are [available][snap].
@@ -120,7 +120,7 @@ MockWebServer
120120
OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients.
121121

122122
```kotlin
123-
testImplementation("com.squareup.okhttp3:mockwebserver:3.14.2")
123+
testImplementation("com.squareup.okhttp3:mockwebserver:4.0.0")
124124
```
125125

126126

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
22

33
GROUP=com.squareup.okhttp3
4-
VERSION_NAME=4.0.0-SNAPSHOT
4+
VERSION_NAME=4.0.0
55

66
POM_URL=https://github.com/square/okhttp
77
POM_SCM_URL=https://github.com/square/okhttp

mockwebserver/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ server.setDispatcher(dispatcher);
142142
### Download
143143

144144
```kotlin
145-
testImplementation("com.squareup.okhttp3:mockwebserver:3.14.2")
145+
testImplementation("com.squareup.okhttp3:mockwebserver:4.0.0")
146146
```
147147

148148
### License

okhttp-dnsoverhttps/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ API is not considered stable and may change at any time.
77
### Download
88

99
```kotlin
10-
testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:3.14.2")
10+
testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.0.0")
1111
```

okhttp-logging-interceptor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Download
3737
--------
3838

3939
```kotlin
40-
implementation("com.squareup.okhttp3:logging-interceptor:3.14.2")
40+
implementation("com.squareup.okhttp3:logging-interceptor:4.0.0")
4141
```
4242

4343

okhttp-sse/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ API is not considered stable and may change at any time.
77
### Download
88

99
```kotlin
10-
testImplementation("com.squareup.okhttp3:okhttp-sse:3.14.2")
10+
testImplementation("com.squareup.okhttp3:okhttp-sse:4.0.0")
1111
```

okhttp-tls/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Download
227227
--------
228228

229229
```kotlin
230-
implementation("com.squareup.okhttp3:okhttp-tls:3.14.2")
230+
implementation("com.squareup.okhttp3:okhttp-tls:4.0.0")
231231
```
232232

233233
[held_certificate]: http://square.github.io/okhttp/4.x/okhttp-tls/okhttp3.tls/-held-certificate/

okhttp-urlconnection/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ This module integrates OkHttp with `Authenticator` and `CookieHandler` from `jav
66
### Download
77

88
```kotlin
9-
testImplementation("com.squareup.okhttp3:okhttp-urlconnection:3.14.2")
9+
testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.0.0")
1010
```

samples/guide/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Samples
2-
=======
2+
=======

0 commit comments

Comments
 (0)