From bbeb25f7f52dd44afa714550b674914d8af81166 Mon Sep 17 00:00:00 2001 From: Ken Southerland Date: Fri, 7 Jun 2024 15:13:07 -0700 Subject: [PATCH 1/3] Update versions and add instructions on publishing to local maven repo --- README.md | 6 +++++- buildSrc/src/main/kotlin/Versions.kt | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d9d5fa68b..1957c7b44 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ pgjdbc-ng is released under the 3 clause BSD license. #### Building The driver is built with Gradle. To build & test, execute: - ./gradlew clean build. + ./gradlew clean build This will produce, in the `driver/build/libs` directory, two JAR files. One with dependencies packaged inside (`pgjdbg-nc-all-`) and another without (`pgjdbc-ng-VERSION`). @@ -75,6 +75,10 @@ Alternatively, to build the driver without testing you can execute: ./gradlew clean assemble +And to do the same and publish to your local maven repository you can execute: + + ./gradlew clean assemble publishToMavenLocal + #### Testing The unit tests need a PostgreSQL database to execute against. The build will start a [Docker](https://docker.com) diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index e448f2a0c..768a3db31 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -6,19 +6,19 @@ object Versions { * Source */ val javaTarget = JavaVersion.VERSION_1_8 - const val kotlin = "1.9.10" + const val kotlin = "2.0.0" /** * Required Libraries */ - const val netty = "4.1.100.Final" + const val netty = "4.1.109.Final" /** * Tooling Libraries */ const val javaPoet = "1.13.0" const val argParser = "2.0.7" - const val asciidoctorJ = "2.5.10" + const val asciidoctorJ = "2.5.13" /** * Testing dependencies From 147aafc2f954a57c9b31c8a8700d493b21e5bf86 Mon Sep 17 00:00:00 2001 From: Ken Southerland Date: Wed, 12 Jun 2024 22:24:39 -0700 Subject: [PATCH 2/3] Update Versions.kt --- buildSrc/src/main/kotlin/Versions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index 768a3db31..c3c557903 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -6,7 +6,7 @@ object Versions { * Source */ val javaTarget = JavaVersion.VERSION_1_8 - const val kotlin = "2.0.0" + const val kotlin = "1.9.20" /** * Required Libraries From 6c9cd15d2109ad86d8193b2bd365bcd7f47eb94d Mon Sep 17 00:00:00 2001 From: Ken Southerland Date: Fri, 4 Oct 2024 12:21:31 -0700 Subject: [PATCH 3/3] so I can compile locally --- settings.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index ab314b3f0..91a6ed4d1 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -9,4 +9,4 @@ include(":pgjdbc-ng") project(":pgjdbc-ng").projectDir = file("driver") include(":udt-gen") -include(":documentation") +// include(":documentation")