pgjdbc/pgjdbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
From: vlsi (@vlsi) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: [pgjdbc/pgjdbc] PR #4154: build: 42.3 upgrade Gradle to 7.6.6
Date: Thu, 04 Jun 2026 07:37:36 +0000
Message-ID: <[email protected]> (raw)

## Why

Splitting this out of the nmcp publishing change (#4148) so it can merge first.

42.3.x ships Gradle 6.9.1. Publishing to the Central Portal needs the nmcp plugin, which requires Gradle 7+, so the wrapper has to move up first. 7.6.6 matches release/42.2.x.

## What

- Bump the Gradle wrapper from 6.9.1 to 7.6.6 (distribution URL and SHA-256).
- `buildSrc`: drop the `sourceCompatibility` / `targetCompatibility` assignments on `KotlinCompile`; the Kotlin Gradle plugin bundled with Gradle 7 no longer exposes them.
- Bump `com.github.lburgazzoli.karaf` 0.5.1 → 0.5.4. The old version trips Gradle 7's strict task validation (`KarafFeaturesTask` `karaf` property has no input/output annotation). 0.5.4 is the version already used on release/42.4.x and release/42.5.x.

No publishing or behavioural changes — this is the toolchain bump only.

## How to verify

    ./gradlew :postgresql:jar :postgresql:generateFeatures

builds cleanly on Gradle 7.6.6 (JDK 11). The previously failing `generateFeatures` task now passes.

diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts
index 8f414eee1e..b795107bca 100644
--- a/buildSrc/build.gradle.kts
+++ b/buildSrc/build.gradle.kts
@@ -26,8 +26,6 @@ kotlinDslPluginOptions {
 }
 
 tasks.withType<KotlinCompile> {
-    sourceCompatibility = "unused"
-    targetCompatibility = "unused"
     kotlinOptions {
         jvmTarget = "1.8"
     }
diff --git a/gradle.properties b/gradle.properties
index cb259f6cf9..73e33b2025 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -30,7 +30,7 @@ biz.aQute.bnd.builder.version=4.3.1
 com.github.autostyle.version=3.1
 com.github.burrunan.s3-build-cache.version=1.1
 com.github.johnrengelman.shadow.version=5.1.0
-com.github.lburgazzoli.karaf.version=0.5.1
+com.github.lburgazzoli.karaf.version=0.5.4
 com.github.spotbugs.version=2.0.0
 com.github.vlsi.vlsi-release-plugins.version=1.71
 de.thetaphi.forbiddenapis.version=3.1
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 22bbab3f9d..368cef8cbf 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -3,7 +3,7 @@
 
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionSha256Sum=8c12154228a502b784f451179846e518733cf856efc7d45b2e6691012977b2fe
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-bin.zip
+distributionSha256Sum=673d9776f303bc7048fc3329d232d6ebf1051b07893bd9d11616fad9a8673be0
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.6-bin.zip
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: github://pgjdbc/pgjdbc
  Cc: [email protected], [email protected]
  Subject: Re: [pgjdbc/pgjdbc] PR #4154: build: 42.3 upgrade Gradle to 7.6.6
  In-Reply-To: <<[email protected]>>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox