Skip to content

Commit

Permalink
chore: Update for release 1.4.3.42_2_27.jre7
Browse files Browse the repository at this point in the history
  • Loading branch information
emotionbug committed Jan 5, 2023
1 parent a7a8b5f commit d7ea2e6
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 3 deletions.
7 changes: 6 additions & 1 deletion VERSION.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
84 changes: 82 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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()
Expand Down Expand Up @@ -59,3 +64,78 @@ tasks.withType<ShadowJar> {
exclude(dependency("org.hamcrest:hamcrest-core"))
}
}

publishing {
publications {
create<MavenPublication>("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/"))
}
}
}

0 comments on commit d7ea2e6

Please sign in to comment.