Skip to content

Commit

Permalink
[Oztechan/CCC#2910] Move com.android.library to alias
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan committed Oct 24, 2023
1 parent 9cbc6c2 commit 00ca7ca
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion basemob/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import java.util.Properties

plugins {
libs.plugins.apply {
id(androidLib.get().pluginId)
alias(androidLibrary)
alias(kotlinAndroid)
`maven-publish`
signing
Expand Down
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
7 changes: 7 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@
*/
rootProject.name = "BaseMob"
include(":basemob")

pluginManagement {
repositories {
gradlePluginPortal()
google()
}
}

0 comments on commit 00ca7ca

Please sign in to comment.