Skip to content

Commit c9fe6b8

Browse files
committed
Refactor Maven POM configuration by moving artifact details into the pom block
1 parent da13584 commit c9fe6b8

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

decimal-formatter-compose/build.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ plugins {
1010
alias(libs.plugins.vanniktech.mavenPublish)
1111
}
1212

13-
ext["POM_ARTIFACT_ID"] = "decimal-formatter-compose"
14-
ext["POM_NAME"] = "Decimal Formatter Compose"
15-
ext["POM_DESCRIPTION"] = "Jetpack Compose UI components for decimal number input with automatic formatting. Includes OutlinedDecimalTextField, BasicDecimalTextField, and DecimalText."
16-
1713
kotlin {
1814
androidTarget {
1915
publishLibraryVariants("release")
@@ -69,6 +65,11 @@ android {
6965
}
7066

7167
mavenPublishing {
68+
pom {
69+
// artifact id is set automatically to the project name, in this case "decimal-formatter-compose"
70+
name.set("Decimal Formatter Compose")
71+
description.set("Jetpack Compose UI components for decimal number input with automatic formatting. Includes OutlinedDecimalTextField, BasicDecimalTextField, and DecimalText.")
72+
}
7273
publishToMavenCentral()
7374
signAllPublications()
7475
}

decimal-formatter-core/build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ plugins {
66
alias(libs.plugins.vanniktech.mavenPublish)
77
}
88

9-
ext["POM_ARTIFACT_ID"] = "decimal-formatter-core"
10-
ext["POM_NAME"] = "Decimal Formatter Core"
11-
ext["POM_DESCRIPTION"] = "Core decimal formatting logic for Kotlin Multiplatform projects. Provides DecimalFormatter for formatting numbers with configurable decimal and thousand separators."
129

1310
kotlin {
1411
androidTarget {
@@ -48,6 +45,11 @@ android {
4845
}
4946

5047
mavenPublishing {
48+
pom {
49+
// artifact id is set automatically to the project name, in this case "decimal-formatter-core"
50+
name.set("Decimal Formatter Core")
51+
description.set("Core decimal formatting logic for Kotlin Multiplatform projects. Provides DecimalFormatter for formatting numbers with configurable decimal and thousand separators.")
52+
}
5153
publishToMavenCentral()
5254
signAllPublications()
5355
}

gradle.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ android.useAndroidX=true
1212
android.nonTransitiveRClass=true
1313

1414
GROUP=dev.robercoding
15-
POM_ARTIFACT_ID_CORE=decimal-formatter-core
16-
POM_ARTIFACT_ID_COMPOSE=decimal-formatter-compose
1715
VERSION_NAME=0.0.1-alpha01
1816

1917
# Common POM details

0 commit comments

Comments
 (0)