From 81d34114e29d4202b4dbcc16bbc4dcbcd4ffa044 Mon Sep 17 00:00:00 2001 From: Yuri Schimke Date: Sat, 31 Dec 2022 00:38:41 +1000 Subject: [PATCH] [4.x] Update Okio to 3.2.0 (#7591) * Update Okio to 3.2.0 This version does the right thing for Kotlin Multiplatform and Maven. * Filtering okio-jvm to okio. Co-authored-by: Jesse Wilson --- build.gradle | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index be827adbb2c8..88d715be10c8 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ buildscript { 'junit': '4.13', 'kotlin': '1.6.20', 'moshi': '1.13.0', - 'okio': '3.0.0', + 'okio': '3.2.0', 'ktlint': '0.38.0', 'picocli': '4.2.0', 'openjsse': '1.1.0' @@ -273,6 +273,15 @@ subprojects { project -> developerConnection = 'scm:git:ssh://git@github.com/square/okhttp.git' url = 'https://github.com/square/okhttp' } + withXml { + asNode().dependencies.dependency + .findAll { dependency -> + dependency.artifactId.text() == 'okio-jvm' + } + .each { dependency -> + dependency.artifactId*.value = 'okio' + } + } } } }