autofill-parser: flesh out generated POM file (#1140)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
e730a779d9
commit
0d6b7f1842
2 changed files with 32 additions and 3 deletions
|
@ -39,10 +39,37 @@ afterEvaluate {
|
|||
}
|
||||
publications {
|
||||
create<MavenPublication>("apsMaven") {
|
||||
fun getKey(propertyName: String): String {
|
||||
return findProperty(propertyName)?.toString() ?: error("Failed to find property for $propertyName")
|
||||
}
|
||||
|
||||
from(components.getByName("release"))
|
||||
groupId = findProperty("GROUP").toString()
|
||||
artifactId = findProperty("POM_ARTIFACT_ID").toString()
|
||||
version = findProperty("VERSION_NAME").toString()
|
||||
groupId = getKey("GROUP")
|
||||
artifactId = getKey("POM_ARTIFACT_ID")
|
||||
version = getKey("VERSION_NAME")
|
||||
pom {
|
||||
name.set(getKey("POM_ARTIFACT_ID"))
|
||||
description.set(getKey("POM_ARTIFACT_DESCRIPTION"))
|
||||
url.set(getKey("POM_URL"))
|
||||
licenses {
|
||||
license {
|
||||
name.set(getKey("POM_LICENSE_NAME"))
|
||||
url.set(getKey("POM_LICENSE_URL"))
|
||||
}
|
||||
}
|
||||
developers {
|
||||
developer {
|
||||
id.set(getKey("POM_DEVELOPER_ID"))
|
||||
name.set(getKey("POM_DEVELOPER_NAME"))
|
||||
email.set(getKey("POM_DEVELOPER_EMAIL"))
|
||||
}
|
||||
}
|
||||
scm {
|
||||
connection.set(getKey("POM_SCM_CONNECTION"))
|
||||
developerConnection.set(getKey("POM_SCM_DEV_CONNECTION"))
|
||||
url.set(getKey("POM_SCM_URL"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
GROUP=com.github.androidpasswordstore
|
||||
VERSION_NAME=1.0.0
|
||||
POM_ARTIFACT_ID=autofill-parser
|
||||
POM_ARTIFACT_DESCRIPTION=Android library for low-level parsing of Autofill structures
|
||||
|
||||
POM_URL=https://github.com/Android-Password-Store/android-password-store
|
||||
POM_SCM_URL=https://github.com/Android-Password-Store/android-password-store
|
||||
|
@ -13,3 +14,4 @@ POM_LICENSE_DIST=repo
|
|||
|
||||
POM_DEVELOPER_ID=android-password-store
|
||||
POM_DEVELOPER_NAME=The Android Password Store Authors
|
||||
POM_DEVELOPER_EMAIL=aps@msfjarvis.dev
|
||||
|
|
Loading…
Reference in a new issue