diff --git a/basemob/build.gradle.kts b/basemob/build.gradle.kts index 76c5ddf..f87aac9 100644 --- a/basemob/build.gradle.kts +++ b/basemob/build.gradle.kts @@ -6,7 +6,7 @@ import java.util.Properties plugins { libs.plugins.apply { - id(androidLib.get().pluginId) + alias(androidLibrary) alias(kotlinAndroid) `maven-publish` signing diff --git a/build.gradle.kts b/build.gradle.kts index b4be6bf..23b461c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,10 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - alias(libs.plugins.kotlinAndroid).apply(false) + libs.plugins.apply { + alias(kotlinAndroid).apply(false) + alias(androidLibrary).apply(false) + } } buildscript { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 8161815..ee8ad60 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -17,4 +17,4 @@ classpaths-kotlinGradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-p [plugins] kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } -androidLib = { id = "com.android.library" } +androidLibrary = { id = "com.android.library", version.ref = "androidGradlePlugin" } diff --git a/settings.gradle.kts b/settings.gradle.kts index d3f4e63..2b7622d 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -3,3 +3,10 @@ */ rootProject.name = "BaseMob" include(":basemob") + +pluginManagement { + repositories { + gradlePluginPortal() + google() + } +}