Skip to content

Commit 50b06ad

Browse files
author
WarpLink
committed
fix: stop duplicating <license>/<developer> in the published POM
The vanniktech plugin already populates the POM from the POM_* keys in gradle.properties, and the explicit mavenPublishing { pom { } } block re-added the same metadata. For list-valued elements (licenses, developers) the block appends rather than overwrites, so the published POM carried two identical <license> and <developer> entries. Drop the redundant block and rely on the POM_* properties, adding POM_INCEPTION_YEAR so <inceptionYear> is preserved. Verified: the generated POM now has a single <license>/<developer> and retains name, description, url, scm, and inceptionYear.
1 parent aa82977 commit 50b06ad

2 files changed

Lines changed: 5 additions & 26 deletions

File tree

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ VERSION_NAME=1.0.2
88
POM_NAME=WarpLink Android SDK
99
POM_DESCRIPTION=Deep linking SDK for Android
1010
POM_URL=https://github.com/WarpLinkApp/warplink-android-sdk
11+
POM_INCEPTION_YEAR=2026
1112
POM_SCM_URL=https://github.com/WarpLinkApp/warplink-android-sdk
1213
POM_SCM_CONNECTION=scm:git:git://github.com/WarpLinkApp/warplink-android-sdk.git
1314
POM_SCM_DEV_CONNECTION=scm:git:ssh://github.com:WarpLinkApp/warplink-android-sdk.git

sdk/build.gradle.kts

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -70,30 +70,8 @@ mavenPublishing {
7070
version = property("VERSION_NAME").toString(),
7171
)
7272

73-
pom {
74-
name.set(property("POM_NAME").toString())
75-
description.set(property("POM_DESCRIPTION").toString())
76-
url.set(property("POM_URL").toString())
77-
inceptionYear.set("2026")
78-
79-
licenses {
80-
license {
81-
name.set(property("POM_LICENCE_NAME").toString())
82-
url.set(property("POM_LICENCE_URL").toString())
83-
}
84-
}
85-
86-
developers {
87-
developer {
88-
id.set(property("POM_DEVELOPER_ID").toString())
89-
name.set(property("POM_DEVELOPER_NAME").toString())
90-
}
91-
}
92-
93-
scm {
94-
url.set(property("POM_SCM_URL").toString())
95-
connection.set(property("POM_SCM_CONNECTION").toString())
96-
developerConnection.set(property("POM_SCM_DEV_CONNECTION").toString())
97-
}
98-
}
73+
// POM metadata (name, description, url, licenses, developers, scm) is
74+
// populated automatically from the POM_* keys in gradle.properties. Do not
75+
// re-declare a pom { } block here: the vanniktech plugin appends list
76+
// elements, so an explicit block duplicates <license>/<developer>.
9977
}

0 commit comments

Comments
 (0)