From a748d6ab01bf7905d051312b22c104facf9d9b2e Mon Sep 17 00:00:00 2001 From: stevenyomi <95685115+stevenyomi@users.noreply.github.com> Date: Sat, 2 Mar 2024 22:17:33 +0000 Subject: [PATCH] Use `versionCatalogs` in precompiled script plugins --- buildSrc/src/main/kotlin/lib-android.gradle.kts | 4 +--- buildSrc/src/main/kotlin/lib-multisrc.gradle.kts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/buildSrc/src/main/kotlin/lib-android.gradle.kts b/buildSrc/src/main/kotlin/lib-android.gradle.kts index 9907ce7f0..ee9eb1c22 100644 --- a/buildSrc/src/main/kotlin/lib-android.gradle.kts +++ b/buildSrc/src/main/kotlin/lib-android.gradle.kts @@ -18,8 +18,6 @@ android { } } -// TODO: use versionCatalogs.named("libs") in Gradle 8.5 -val libs = project.extensions.getByType().named("libs") dependencies { - compileOnly(libs.findBundle("common").get()) + compileOnly(versionCatalogs.named("libs").findBundle("common").get()) } diff --git a/buildSrc/src/main/kotlin/lib-multisrc.gradle.kts b/buildSrc/src/main/kotlin/lib-multisrc.gradle.kts index 4193fd1ea..29e52f46f 100644 --- a/buildSrc/src/main/kotlin/lib-multisrc.gradle.kts +++ b/buildSrc/src/main/kotlin/lib-multisrc.gradle.kts @@ -36,10 +36,8 @@ kotlinter { ) } -// TODO: use versionCatalogs.named("libs") in Gradle 8.5 -val libs = project.extensions.getByType().named("libs") dependencies { - compileOnly(libs.findBundle("common").get()) + compileOnly(versionCatalogs.named("libs").findBundle("common").get()) } tasks {