diff --git a/VERSION.md b/VERSION.md index 8b0dbd2..c7dbe1a 100644 --- a/VERSION.md +++ b/VERSION.md @@ -1,4 +1,9 @@ -1.4.2 / 2010-01-11 +1.4.3 / 2023-01-05 +* feat: Support the graph array +* fix: Cannot convert jsonb string to number. (AG-120) +* Upgrade PostgreSQL JDBC Driver to 42.2.27.jre7 + +1.4.2 / 2018-01-11 * feat: Support `getKeys()` and `getTypedValue()` 1.4.1 / 2017-12-19 diff --git a/build.gradle.kts b/build.gradle.kts index 19245c5..2631c84 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,8 +8,12 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar plugins { java - `maven-publish` id("com.github.johnrengelman.shadow") version "7.1.2" + + // Publishing + signing + `maven-publish` + id("io.github.gradle-nexus.publish-plugin") version "1.1.0" } repositories { @@ -25,9 +29,10 @@ dependencies { } group = "net.bitnine" -version = "1.4.2" +version = "1.4.3.42_2_27.jre7" description = "Agensgraph JDBC" java.sourceCompatibility = JavaVersion.VERSION_1_7 +val githubUrl = "github.com/bitnine-oss/agensgraph-jdbc" java { withSourcesJar() @@ -59,3 +64,78 @@ tasks.withType { exclude(dependency("org.hamcrest:hamcrest-core")) } } + +publishing { + publications { + create("release") { + from(components["java"]) + + pom { + name.set(project.name) + description.set(project.description) + url.set("https://$githubUrl") + + licenses { + license { + name.set("The Apache Software License, Version 2.0") + url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") + distribution.set("repo") + } + } + + developers { + developer { + id.set("emotionbug") + name.set("Alex Kwak") + } + } + + issueManagement { + url.set("https://$githubUrl/issues") + system.set("GitHub Issues") + } + + scm { + connection.set("scm:git@$githubUrl.git") + developerConnection.set("scm:git@$githubUrl.git") + url.set("https://$githubUrl") + } + } + } + } +} + +/** + * https://docs.gradle.org/current/userguide/signing_plugin.html + */ +signing { + sign(publishing.publications) +} + +/** + * It requires authorization. + * + * export SONATYPE_BITNINE_USER=... + * export SONATYPE_BITNINE_PASSWORD=... + */ +nexusPublishing { + repositories { + create("sonatype") { + try { + val sonaUser = + providers.environmentVariable("SONATYPE_BITNINE_USER").get() + val sonaPassword = + providers.environmentVariable("SONATYPE_BITNINE_PASSWORD") + .get() + + username.set(sonaUser) + password.set(sonaPassword) + } catch (ignored: Exception) { + /* will ignore if not exists. */ + } + + nexusUrl.set(uri("https://oss.sonatype.org/service/local/")) + snapshotRepositoryUrl.set(uri("https://oss.sonatype.org/content/repositories/snapshots/")) + } + } +}