Skip to content

Commit

Permalink
feat: Add android maven plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
SeokgyuYun committed Mar 24, 2024
1 parent d5e099c commit 3eab9c6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ plugins {
alias(libs.plugins.android.application).apply(false)
alias(libs.plugins.android.library).apply(false)
alias(libs.plugins.kotlin.android).apply(false)
alias(libs.plugins.android.maven).apply(false)
}
17 changes: 9 additions & 8 deletions dodam-design-system/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ plugins {
id("maven-publish")
}

afterEvaluate {
publishing {
publications {
register("release", MavenPublication::class) {
publishing {
publications {
register<MavenPublication>("release") {
groupId = "com.b1nd.dodam"
artifactId = "dodam-design-system"
version = "0.1.3"

afterEvaluate {
from(components["release"])
groupId = "com.b1nd.dodam"
artifactId = "dodam-design-system"
version = "0.1.2"
}
}
}
Expand Down Expand Up @@ -61,4 +62,4 @@ dependencies {
implementation(libs.androidx.compose.ui.foundation)
implementation(libs.androidx.compose.ui.tooling)
implementation(libs.androidx.compose.ui.tooling.preview)
}
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ kotlinx-collections-immutable = "0.3.7"

# gradle plugin
agp = "8.2.2"
maven = "2.1"

# android
androidx-core = "1.12.0"
Expand All @@ -35,3 +36,4 @@ androidx-core = { group = "androidx.core", name = "core-ktx", version.ref = "and
android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
android-maven = { id = "com.github.dcendents.android-maven", version.ref = "maven" }

0 comments on commit 3eab9c6

Please sign in to comment.