Skip to content

Commit

Permalink
Changes to enable publishing of the jar
Browse files Browse the repository at this point in the history
  • Loading branch information
ashetkar committed Oct 9, 2024
1 parent 132770e commit af52134
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ java {
publishing {
publications {
create<MavenPublication>(project.name) {
artifactId = "jdbc-yugabytedb"
version = rootProject.version.toString()
from(components["java"])

// Gradle feature variants can't be mapped to Maven's pom
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ publishing {
val capitalizedName = project.name
.replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString() }
name.set(
(project.findProperty("artifact.name") as? String) ?: "pgdjbc $capitalizedName"
"YugabyteDB YSQL JDBC Driver"
)
description.set(project.description ?: "PostgreSQL JDBC Driver $capitalizedName")
inceptionYear.set("1997")
url.set("https://jdbc.postgresql.org")
description.set(project.description ?: "Forked from https://github.com/pgjdbc/pgjdbc.git")
inceptionYear.set("2016")
url.set("https://www.yugabyte.com/")
licenses {
license {
name.set("BSD-2-Clause")
Expand All @@ -64,52 +64,39 @@ publishing {
}
}
organization {
name.set("PostgreSQL Global Development Group")
url.set("https://jdbc.postgresql.org/")
name.set("Yugabyte Inc.")
url.set("https://www.yugabyte.com/")
}
developers {
developer {
id.set("davecramer")
name.set("Dave Cramer")
id.set("kneeraj")
name.set("Neeraj Kumar")
}
developer {
id.set("jurka")
name.set("Kris Jurka")
id.set("sanyamsinghal")
name.set("Sanyam Singhal")
}
developer {
id.set("oliver")
name.set("Oliver Jowett")
id.set("ashetkar")
name.set("Amogh Shetkar")
}
developer {
id.set("ringerc")
name.set("Craig Ringer")
id.set("sfurti-yb")
name.set("Sfurti Sarah")
}
developer {
id.set("vlsi")
name.set("Vladimir Sitnikov")
}
developer {
id.set("bokken")
name.set("Brett Okken")
id.set("harshdaryani896")
name.set("Harsh Daryani")
}
}
issueManagement {
system.set("GitHub issues")
url.set("https://github.com/pgjdbc/pgjdbc/issues")
}
mailingLists {
mailingList {
name.set("PostgreSQL JDBC development list")
subscribe.set("https://lists.postgresql.org/")
unsubscribe.set("https://lists.postgresql.org/unsubscribe/")
post.set("[email protected]")
archive.set("https://www.postgresql.org/list/pgsql-jdbc/")
}
url.set("https://github.com/yugabyte/yugabyte-db/issues")
}
scm {
connection.set("scm:git:https://github.com/pgjdbc/pgjdbc.git")
developerConnection.set("scm:git:https://github.com/pgjdbc/pgjdbc.git")
url.set("https://github.com/pgjdbc/pgjdbc")
connection.set("scm:git:https://github.com/yugabyte/pgjdbc.git")
developerConnection.set("scm:git:https://github.com/yugabyte/pgjdbc.git")
url.set("https://github.com/yugabyte/pgjdbc")
tag.set("HEAD")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ publishing {
name = "tmp-maven"
url = uri(localRepoDir)
}
maven {
name = "remote"
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_PASSWORD")
}
}
}
}

Expand Down

0 comments on commit af52134

Please sign in to comment.