From 9a0b0a0dfa5f9588f16f1c24a4bf16cbcf01c9dc Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Wed, 13 Mar 2024 09:17:58 -0400 Subject: [PATCH 1/2] Inline versions to fix Renovate --- build.gradle | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 23bfb4b..370fa16 100644 --- a/build.gradle +++ b/build.gradle @@ -2,16 +2,12 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile buildscript { - ext.versions = [ - 'kotlin': '1.9.0', - 'serialization': '1.5.1', - ] repositories { mavenCentral() } dependencies { - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}" - classpath "org.jetbrains.kotlin:kotlin-serialization:${versions.kotlin}" + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0" + classpath "org.jetbrains.kotlin:kotlin-serialization:1.9.0" classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.25.0' classpath 'com.vanniktech:gradle-maven-publish-plugin:0.27.0' } @@ -36,8 +32,8 @@ dependencies { testImplementation "junit:junit:4.13.2" testImplementation "com.squareup.okhttp3:mockwebserver:4.12.0" testImplementation "com.google.truth:truth:1.4.2" - testImplementation "org.jetbrains.kotlinx:kotlinx-serialization-protobuf:${versions.serialization}" - testImplementation "org.jetbrains.kotlinx:kotlinx-serialization-json:${versions.serialization}" + testImplementation "org.jetbrains.kotlinx:kotlinx-serialization-protobuf:1.5.1" + testImplementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1" } tasks.withType(KotlinJvmCompile).configureEach { task -> From be45320bcea8dcf5bfceb96617e64330a851bc5f Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Wed, 13 Mar 2024 09:20:20 -0400 Subject: [PATCH 2/2] Update build.gradle --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 370fa16..248a576 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ repositories { dependencies { api "com.squareup.retrofit2:retrofit:2.9.0" - api "org.jetbrains.kotlinx:kotlinx-serialization-core:${versions.serialization}" + api "org.jetbrains.kotlinx:kotlinx-serialization-core:1.5.1" testImplementation "junit:junit:4.13.2" testImplementation "com.squareup.okhttp3:mockwebserver:4.12.0"