- org.postgresql
+ ${project.groupId}
postgresql-client-protocol
diff --git a/postgresql-client/src/main/java/org/postgresql/client/core/PgComposite.java b/postgresql-client/src/main/java/org/postgresql/client/core/PgComposite.java
index e0402382..0c164be9 100644
--- a/postgresql-client/src/main/java/org/postgresql/client/core/PgComposite.java
+++ b/postgresql-client/src/main/java/org/postgresql/client/core/PgComposite.java
@@ -10,7 +10,7 @@
* this shape (the type name comes from the catalog), and a bound parameter of this shape resolves
* the composite's OID and per-field codecs by name to serialize the record text form
* {@code (f0,f1,...)} -- so a decoded value can be re-bound unchanged. The JDBC layer maps it to
- * and from {@link java.sql.Struct}.
+ * and from {@code java.sql.Struct}.
*
* Attributes may contain {@code null} (a SQL NULL field), so they are held in a null-tolerant
* unmodifiable list rather than {@code List.copyOf}.
diff --git a/scripts/snapshot-summary.sh b/scripts/snapshot-summary.sh
new file mode 100755
index 00000000..8b904a05
--- /dev/null
+++ b/scripts/snapshot-summary.sh
@@ -0,0 +1,93 @@
+#!/usr/bin/env bash
+#
+# Writes a Markdown summary of a published snapshot to stdout, for the publish-snapshot
+# workflow's $GITHUB_STEP_SUMMARY.
+#
+# Usage: scripts/snapshot-summary.sh GROUP_ID VERSION
+#
+# The published artifacts are the parent plus every of the root pom.xml, minus the
+# entries of its excludeArtifacts block (module directory names are the
+# artifactIds in this build). Each one's timestamped build is read back from the snapshot
+# repository's maven-metadata.xml; "-" means it could not be read.
+
+set -euo pipefail
+
+REPO_URL="https://central.sonatype.com/repository/maven-snapshots"
+
+main() {
+ if [ $# -ne 2 ]; then
+ echo "usage: $0 GROUP_ID VERSION" >&2
+ exit 2
+ fi
+ local group="$1" version="$2"
+ cd "$(dirname "$0")/.."
+
+ local parent
+ parent=$(sed -n 's|^ \(.*\)$|\1|p' pom.xml | head -n 1)
+ local excluded
+ excluded=$(sed -n 's|^ *\(.*\)$|\1|p' pom.xml)
+ local artifacts=("$parent")
+ local module
+ for module in $(sed -n 's|^ *\(.*\)$|\1|p' pom.xml); do
+ if ! grep -qx "$module" <<<"$excluded"; then
+ artifacts+=("$module")
+ fi
+ done
+
+ local group_path="${group//./\/}"
+ local commit="${GITHUB_SHA:-$(git rev-parse HEAD)}"
+ local ref="${GITHUB_REF_NAME:-$(git rev-parse --abbrev-ref HEAD)}"
+
+ echo "## Published snapshot"
+ echo
+ echo "| | |"
+ echo "| --- | --- |"
+ echo "| Version | \`$version\` |"
+ echo "| Branch | \`$ref\` |"
+ echo "| Commit | \`${commit:0:12}\` |"
+ echo "| Repository | $REPO_URL |"
+ echo
+ echo "| Artifact | Coordinates | Build |"
+ echo "| --- | --- | --- |"
+ local artifact build
+ for artifact in "${artifacts[@]}"; do
+ build=$(snapshot_build "$group_path" "$artifact" "$version")
+ echo "| \`$artifact\` | \`$group:$artifact:$version\` | ${build:+\`}${build:--}${build:+\`} |"
+ done
+ echo
+ echo "### Using it"
+ echo
+ echo "Snapshots are not on Maven Central itself; add the snapshot repository:"
+ echo
+ echo '```xml'
+ echo ""
+ echo " "
+ echo " central-portal-snapshots"
+ echo " $REPO_URL/"
+ echo " false"
+ echo " true"
+ echo " "
+ echo ""
+ echo
+ echo ""
+ echo " $group"
+ echo " postgresql-client-jdbc"
+ echo " $version"
+ echo ""
+ echo '```'
+}
+
+# The timestamped build (e.g. 0.1.0-20261129.191502-3) the version currently resolves to.
+snapshot_build() {
+ local group_path="$1" artifact="$2" version="$3"
+ local metadata
+ metadata=$(curl -fsS --max-time 20 "$REPO_URL/$group_path/$artifact/$version/maven-metadata.xml" 2>/dev/null) || return 0
+ local timestamp number
+ timestamp=$(sed -n 's|.*\(.*\).*|\1|p' <<<"$metadata" | head -n 1)
+ number=$(sed -n 's|.*\(.*\).*|\1|p' <<<"$metadata" | head -n 1)
+ if [ -n "$timestamp" ] && [ -n "$number" ]; then
+ echo "${version%-SNAPSHOT}-$timestamp-$number"
+ fi
+}
+
+main "$@"