diff --git a/build-logic/publishing/src/main/kotlin/build-logic.java-published-library.gradle.kts b/build-logic/publishing/src/main/kotlin/build-logic.java-published-library.gradle.kts index 0d6e4f7036..f7ac2fdcd5 100644 --- a/build-logic/publishing/src/main/kotlin/build-logic.java-published-library.gradle.kts +++ b/build-logic/publishing/src/main/kotlin/build-logic.java-published-library.gradle.kts @@ -17,6 +17,8 @@ java { publishing { publications { create(project.name) { + artifactId = "jdbc-yugabytedb" + version = rootProject.version.toString() from(components["java"]) // Gradle feature variants can't be mapped to Maven's pom diff --git a/build-logic/publishing/src/main/kotlin/build-logic.publish-to-central.gradle.kts b/build-logic/publishing/src/main/kotlin/build-logic.publish-to-central.gradle.kts index 0cde6ad7cf..13be6a1ac2 100644 --- a/build-logic/publishing/src/main/kotlin/build-logic.publish-to-central.gradle.kts +++ b/build-logic/publishing/src/main/kotlin/build-logic.publish-to-central.gradle.kts @@ -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") @@ -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("pgsql-jdbc@postgresql.org") - 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") } } diff --git a/build-logic/publishing/src/main/kotlin/build-logic.publish-to-tmp-maven-repo.gradle.kts b/build-logic/publishing/src/main/kotlin/build-logic.publish-to-tmp-maven-repo.gradle.kts index 673770849a..c5cdbc4bf6 100644 --- a/build-logic/publishing/src/main/kotlin/build-logic.publish-to-tmp-maven-repo.gradle.kts +++ b/build-logic/publishing/src/main/kotlin/build-logic.publish-to-tmp-maven-repo.gradle.kts @@ -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") + } + } } }