diff --git a/build.gradle.kts b/build.gradle.kts index b0e400b..c87066d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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) } \ No newline at end of file diff --git a/dodam-design-system/build.gradle.kts b/dodam-design-system/build.gradle.kts index c9429d8..f6dc589 100644 --- a/dodam-design-system/build.gradle.kts +++ b/dodam-design-system/build.gradle.kts @@ -4,14 +4,15 @@ plugins { id("maven-publish") } -afterEvaluate { - publishing { - publications { - register("release", MavenPublication::class) { +publishing { + publications { + register("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" } } } @@ -61,4 +62,4 @@ dependencies { implementation(libs.androidx.compose.ui.foundation) implementation(libs.androidx.compose.ui.tooling) implementation(libs.androidx.compose.ui.tooling.preview) -} \ No newline at end of file +} diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1e18543..a565174 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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" @@ -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" }