Skip to content

Commit

Permalink
Fixes POM name and description (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
RCHowell authored Aug 18, 2022
1 parent 2292cb8 commit 79d632f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion buildSrc/src/main/kotlin/pig.publish.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,24 @@ java {
withSourcesJar()
}

fun String.mavenName(): String = when (this) {
"pig-runtime" -> "PartiQL I.R. Generator (a.k.a P.I.G.) Runtime Library"
else -> "PartiQL I.R. Generator (a.k.a P.I.G.)"
}

fun String.artifactId(): String = name.replace("pig", "partiql-ir-generator")

publishing {
publications {
create<MavenPublication>(name) {
artifactId = name.replace("pig", "partiql-ir-generator")
val module = name
artifactId = module.artifactId()
from(components["java"])
pom {
url.set("https://partiql.org/")
packaging = "jar"
name.set(module.mavenName())
description.set("The P.I.G. is a code generator for domain models such ASTs and execution plans.")
scm {
connection.set("scm:[email protected]:partiql/partiql-ir-generator.git")
developerConnection.set("scm:[email protected]:partiql/partiql-ir-generator.git")
Expand Down

0 comments on commit 79d632f

Please sign in to comment.