From 72d9ee5012f1943a0a945a15db954eebb76f4ba5 Mon Sep 17 00:00:00 2001 From: Bruno Casali Date: Fri, 30 May 2025 16:13:52 -0300 Subject: [PATCH 1/3] Enforce only v4.x versions are allowed for OkHTTP --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index f20cb977..beee17ab 100644 --- a/build.gradle +++ b/build.gradle @@ -53,7 +53,7 @@ dependencies { implementation 'com.google.code.gson:gson:2.12.1' implementation 'org.json:json:20250107' // https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5 - api 'com.squareup.okhttp3:okhttp:[4.10.0,5.0.0)' + api 'com.squareup.okhttp3:okhttp:4.+' // Use JUnit test framework testImplementation(platform('org.junit:junit-bom:5.11.4')) From 0dac6f9b96da526cbcf852b37f8849c4139dab9d Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 19:27:05 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9D=20CodeRabbit=20Chat:=20Update?= =?UTF-8?q?=20build.gradle=20with=20new=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.gradle b/build.gradle index beee17ab..65c74525 100644 --- a/build.gradle +++ b/build.gradle @@ -39,6 +39,17 @@ jacocoTestCoverageVerification { } } } +configurations.all { + resolutionStrategy { + componentSelection { + all { ComponentSelection selection -> + if (selection.candidate.version =~ /(?i).*[.-](alpha|beta|rc|m)[.\d-]*/) { + selection.reject("Pre-release versions are not allowed") + } + } + } + } +} repositories { mavenCentral() From 34d979ce18e26782bc44e29552947a09d2b8852a Mon Sep 17 00:00:00 2001 From: Bruno Casali Date: Fri, 30 May 2025 16:31:36 -0300 Subject: [PATCH 3/3] Update build.gradle --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 65c74525..215790c3 100644 --- a/build.gradle +++ b/build.gradle @@ -64,7 +64,7 @@ dependencies { implementation 'com.google.code.gson:gson:2.12.1' implementation 'org.json:json:20250107' // https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5 - api 'com.squareup.okhttp3:okhttp:4.+' + api 'com.squareup.okhttp3:okhttp:[4.10.0,5.0.0)' // Use JUnit test framework testImplementation(platform('org.junit:junit-bom:5.11.4'))