diff --git a/CHANGELOG.md b/CHANGELOG.md index 642a17387..768fe2a1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,17 @@ Change Log ========== +## Version 4.0.0 + +_2019-06-26_ + +**This release upgrades OkHttp to Kotlin.** We tried our best to make fast and safe to upgrade +from OkHttp 3.x. We wrote an [upgrade guide][upgrading_to_okhttp_4] to help with the migration and a +[blog post][okhttp4_blog_post] to explain it. + + * Fix: Target Java 8 bytecode for Java and Kotlin. + + ## Version 4.0.0-RC3 _2019-06-24_ @@ -26,11 +37,7 @@ _2019-06-21_ _2019-06-03_ -**OkHttp 4 upgrades OkHttp to Kotlin.** This is the first stable preview of OkHttp 4. Use it to find -bugs or performance regressions before the final 4.0.0 release. - -We tried our best to make it fast and safe to upgrade from OkHttp 3.x. -[We even wrote a guide][upgrading_to_okhttp_4] to help you with it! + * First stable preview of OkHttp 4. ## Version 3.14.2 @@ -1794,7 +1801,7 @@ Initial release. [brick]: https://noncombatant.org/2015/05/01/about-http-public-key-pinning/ [webdav]: https://tools.ietf.org/html/rfc4918 - [major_versions]: http://jakewharton.com/java-interoperability-policy-for-major-version-updates/ + [major_versions]: https://jakewharton.com/java-interoperability-policy-for-major-version-updates/ [nginx_959]: https://trac.nginx.org/nginx/ticket/959 [okhttp_idling_resource]: https://github.com/JakeWharton/okhttp-idling-resource [bom]: https://en.wikipedia.org/wiki/Byte_order_mark @@ -1808,7 +1815,8 @@ Initial release. [require_android_5]: https://medium.com/square-corner-blog/okhttp-3-13-requires-android-5-818bb78d07ce [obsolete_apache_client]: https://gist.github.com/swankjesse/09721f72039e3a46cf50f94323deb82d [obsolete_url_factory]: https://gist.github.com/swankjesse/dd91c0a8854e1559b00f5fc9c7bfae70 - [tls_configuration_history]: http://square.github.io/okhttp/tls_configuration_history/ + [tls_configuration_history]: https://square.github.io/okhttp/tls_configuration_history/ [grpc_http2]: https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md - [upgrading_to_okhttp_4]: http://square.github.io/okhttp/upgrading_to_okhttp_4/ - [interceptors]: http://square.github.io/okhttp/interceptors/ + [upgrading_to_okhttp_4]: https://square.github.io/okhttp/upgrading_to_okhttp_4/ + [interceptors]: https://square.github.io/okhttp/interceptors/ + [okhttp4_blog_post]: https://cashapp.github.io/2019-06-26/okhttp-4-goes-kotlin diff --git a/README.md b/README.md index 999455282..2b49800b6 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ Releases Our [change log][changelog] has release history. ```kotlin -implementation("com.squareup.okhttp3:okhttp:3.14.2") +implementation("com.squareup.okhttp3:okhttp:4.0.0") ``` Snapshot builds are [available][snap]. @@ -120,7 +120,7 @@ MockWebServer OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients. ```kotlin -testImplementation("com.squareup.okhttp3:mockwebserver:3.14.2") +testImplementation("com.squareup.okhttp3:mockwebserver:4.0.0") ``` diff --git a/gradle.properties b/gradle.properties index 7c006bc8b..23a562f8a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ org.gradle.jvmargs='-Dfile.encoding=UTF-8' GROUP=com.squareup.okhttp3 -VERSION_NAME=4.0.0-SNAPSHOT +VERSION_NAME=4.0.0 POM_URL=https://github.com/square/okhttp POM_SCM_URL=https://github.com/square/okhttp diff --git a/mockwebserver/README.md b/mockwebserver/README.md index 4dd382a2e..d768cb799 100644 --- a/mockwebserver/README.md +++ b/mockwebserver/README.md @@ -142,7 +142,7 @@ server.setDispatcher(dispatcher); ### Download ```kotlin -testImplementation("com.squareup.okhttp3:mockwebserver:3.14.2") +testImplementation("com.squareup.okhttp3:mockwebserver:4.0.0") ``` ### License diff --git a/okhttp-dnsoverhttps/README.md b/okhttp-dnsoverhttps/README.md index 5aea64e7e..1e0b05c3a 100644 --- a/okhttp-dnsoverhttps/README.md +++ b/okhttp-dnsoverhttps/README.md @@ -7,5 +7,5 @@ API is not considered stable and may change at any time. ### Download ```kotlin -testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:3.14.2") +testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.0.0") ``` diff --git a/okhttp-logging-interceptor/README.md b/okhttp-logging-interceptor/README.md index 690a29087..c887c05a7 100644 --- a/okhttp-logging-interceptor/README.md +++ b/okhttp-logging-interceptor/README.md @@ -37,7 +37,7 @@ Download -------- ```kotlin -implementation("com.squareup.okhttp3:logging-interceptor:3.14.2") +implementation("com.squareup.okhttp3:logging-interceptor:4.0.0") ``` diff --git a/okhttp-sse/README.md b/okhttp-sse/README.md index d8f570a19..376c4d54c 100644 --- a/okhttp-sse/README.md +++ b/okhttp-sse/README.md @@ -7,5 +7,5 @@ API is not considered stable and may change at any time. ### Download ```kotlin -testImplementation("com.squareup.okhttp3:okhttp-sse:3.14.2") +testImplementation("com.squareup.okhttp3:okhttp-sse:4.0.0") ``` diff --git a/okhttp-tls/README.md b/okhttp-tls/README.md index fa453510a..19bfe8376 100644 --- a/okhttp-tls/README.md +++ b/okhttp-tls/README.md @@ -227,7 +227,7 @@ Download -------- ```kotlin -implementation("com.squareup.okhttp3:okhttp-tls:3.14.2") +implementation("com.squareup.okhttp3:okhttp-tls:4.0.0") ``` [held_certificate]: http://square.github.io/okhttp/4.x/okhttp-tls/okhttp3.tls/-held-certificate/ diff --git a/okhttp-urlconnection/README.md b/okhttp-urlconnection/README.md index 1a2234c30..147fdae8e 100644 --- a/okhttp-urlconnection/README.md +++ b/okhttp-urlconnection/README.md @@ -6,5 +6,5 @@ This module integrates OkHttp with `Authenticator` and `CookieHandler` from `jav ### Download ```kotlin -testImplementation("com.squareup.okhttp3:okhttp-urlconnection:3.14.2") +testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.0.0") ``` diff --git a/samples/guide/README.md b/samples/guide/README.md index 84c8ccb00..43787700f 100644 --- a/samples/guide/README.md +++ b/samples/guide/README.md @@ -1,2 +1,2 @@ Samples -======= \ No newline at end of file +=======