From cbeaf8f955fff9caa5652ccc6c1393ec8b993799 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Fri, 11 Sep 2020 17:08:20 -0400 Subject: [PATCH] Prepare for release 4.9.0. --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ README.md | 8 ++++---- build.gradle | 2 +- mockwebserver/README.md | 2 +- okhttp-brotli/README.md | 2 +- okhttp-dnsoverhttps/README.md | 2 +- okhttp-logging-interceptor/README.md | 2 +- okhttp-sse/README.md | 2 +- okhttp-tls/README.md | 2 +- okhttp-urlconnection/README.md | 2 +- 10 files changed, 38 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9066a9726bb6..392ca5899373 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,30 @@ Change Log ========== +## Version 4.9.0 + +_2020-09-11_ + +**With this release, `okhttp-tls` no longer depends on Bouncy Castle and doesn't install the +Bouncy Castle security provider.** If you still need it, you can do it yourself: + +``` +Security.addProvider(BouncyCastleProvider()) +``` + +You will also need to configure this dependency: + +``` +dependencies { + implementation "org.bouncycastle:bcprov-jdk15on:1.65" +} +``` + + * Upgrade: [Kotlin 1.4.10][kotlin_1_4_10]. We now use Kotlin 1.4.x [functional + interfaces][fun_interface] for `Authenticator`, `Interceptor`, and others. + * Upgrade: Build with Conscrypt 2.5.1. + + ## Version 4.8.1 _2020-08-06_ @@ -469,9 +493,11 @@ _2019-06-03_ [bom]: https://docs.gradle.org/6.2/userguide/platforms.html#sub:bom_import [bouncy_castle_releases]: https://www.bouncycastle.org/releasenotes.html [dev_server]: https://github.com/square/okhttp/blob/482f88300f78c3419b04379fc26c3683c10d6a9d/samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt + [fun_interface]: https://kotlinlang.org/docs/reference/fun-interfaces.html [iana_websocket]: https://www.iana.org/assignments/websocket/websocket.txt [jetty_8_252]: https://webtide.com/jetty-alpn-java-8u252/ [kotlin_1_3_71]: https://github.com/JetBrains/kotlin/releases/tag/v1.3.71 + [kotlin_1_4_10]: https://github.com/JetBrains/kotlin/releases/tag/v1.4.10 [legacy_interceptor]: https://gist.github.com/swankjesse/80135f4e03629527e723ab3bcf64be0b [okhttp4_blog_post]: https://cashapp.github.io/2019-06-26/okhttp-4-goes-kotlin [okio_2_6_0]: https://square.github.io/okio/changelog/#version-260 diff --git a/README.md b/README.md index e1e01f0e2263..13c52bab2fd3 100644 --- a/README.md +++ b/README.md @@ -99,10 +99,10 @@ Releases Our [change log][changelog] has release history. -The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/4.8.1/jar). +The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/4.9.0/jar). ```kotlin -implementation("com.squareup.okhttp3:okhttp:4.8.1") +implementation("com.squareup.okhttp3:okhttp:4.9.0") ``` Snapshot builds are [available][snap]. [R8 and ProGuard][r8_proguard] rules are available. @@ -113,10 +113,10 @@ MockWebServer OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients. -The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/4.8.1/jar). +The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/4.9.0/jar). ```kotlin -testImplementation("com.squareup.okhttp3:mockwebserver:4.8.1") +testImplementation("com.squareup.okhttp3:mockwebserver:4.9.0") ``` License diff --git a/build.gradle b/build.gradle index dceb724749fa..d3e27e27b360 100644 --- a/build.gradle +++ b/build.gradle @@ -89,7 +89,7 @@ ext.publishedArtifactId = { project -> allprojects { group = 'com.squareup.okhttp3' project.ext.artifactId = rootProject.ext.publishedArtifactId(project) - version = '4.9.0-SNAPSHOT' + version = '4.9.0' repositories { mavenCentral() diff --git a/mockwebserver/README.md b/mockwebserver/README.md index b2742f9c953d..faf83e7afb56 100644 --- a/mockwebserver/README.md +++ b/mockwebserver/README.md @@ -142,7 +142,7 @@ server.setDispatcher(dispatcher); ### Download ```kotlin -testImplementation("com.squareup.okhttp3:mockwebserver:4.8.1") +testImplementation("com.squareup.okhttp3:mockwebserver:4.9.0") ``` ### License diff --git a/okhttp-brotli/README.md b/okhttp-brotli/README.md index 9450e407d03d..f6039397e505 100644 --- a/okhttp-brotli/README.md +++ b/okhttp-brotli/README.md @@ -14,7 +14,7 @@ OkHttpClient client = new OkHttpClient.Builder() ``` ```kotlin -implementation("com.squareup.okhttp3:okhttp-brotli:4.8.1") +implementation("com.squareup.okhttp3:okhttp-brotli:4.9.0") ``` [1]: https://github.com/google/brotli diff --git a/okhttp-dnsoverhttps/README.md b/okhttp-dnsoverhttps/README.md index fbc1acb38c2e..567e7a94c0bf 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:4.8.1") +testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.9.0") ``` diff --git a/okhttp-logging-interceptor/README.md b/okhttp-logging-interceptor/README.md index 8da1675037af..d281e32e5237 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:4.8.1") +implementation("com.squareup.okhttp3:logging-interceptor:4.9.0") ``` diff --git a/okhttp-sse/README.md b/okhttp-sse/README.md index 1a7e2464c582..2a729274f66f 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:4.8.1") +testImplementation("com.squareup.okhttp3:okhttp-sse:4.9.0") ``` diff --git a/okhttp-tls/README.md b/okhttp-tls/README.md index 276d0401ae70..cbfa7f313252 100644 --- a/okhttp-tls/README.md +++ b/okhttp-tls/README.md @@ -227,7 +227,7 @@ Download -------- ```kotlin -implementation("com.squareup.okhttp3:okhttp-tls:4.8.1") +implementation("com.squareup.okhttp3:okhttp-tls:4.9.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 ce2a0f72fdd2..701adfd39129 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:4.8.1") +testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.9.0") ```