-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes POM name and description (#137)
- Loading branch information
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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") | ||
|