| From: | Georges Martin <jrjsmrtn(at)gmail(dot)com> |
|---|---|
| To: | Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com> |
| Cc: | pgsql-jdbc(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Packaging 42.3.0 for MacPorts -- need some clarifications |
| Date: | 2021-10-26 08:28:07 |
| Message-ID: | 0F6676E3-474F-4C63-ADED-C3A3FAB3FF9D@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Thanks, Vladimir, this helps a lot understanding the Maven/Gradle situation.
> There are several ways to build and package pgjdbc:
>
> a) Build from Git sources. That requires Gradle, and it enables running more tests, so you have better confidence in the resulting artifact
> b) Build from "source release" (see -jdbc-src.tar.gz https://repo1.maven.org/maven2/org/postgresql/postgresql/42.3.0/ <https://repo1.maven.org/maven2/org/postgresql/postgresql/42.3.0/> ). Those are simplified sources,
> and the purpose is to add convenience for cases like Debian that lack Gradle. The set of tests and features is reduced, however, the driver should still work in most cases.
I already have a 42.3.0 Portfile reverting back to Maven builds using source release but, as I would like to add tests to the Portfile in the future, I think I'll switch to Git sources and stay with Gradle builds.
> c) You could grab the official release artifacts from https://repo1.maven.org/maven2/org/postgresql/postgresql/ <https://repo1.maven.org/maven2/org/postgresql/postgresql/>
> For instance, Gradle port of MacPorts grabs Gradle from the official distribution site, and it does not build Gradle from sources: https://github.com/macports/macports-ports/blob/cb0311519f9752e4507cf64ba042045690ac429a/devel/gradle/Portfile#L23-L29 <https://github.com/macports/macports-ports/blob/cb0311519f9752e4507cf64ba042045690ac429a/devel/gradle/Portfile#L23-L29>
You are right: some large codebase like JDK are indeed using upstream binaries, but pgjdbc is not that large... :-) Here, I think I'll stay old school and limit potential "supply chain" issues ;-)
Thanks again :-)
Georges
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Cramer | 2021-10-27 11:33:29 | [pgjdbc/pgjdbc] 671130: Remove references to JAVA 6 and 7 (#2312) |
| Previous Message | Dave Cramer | 2021-10-25 20:21:45 | [pgjdbc/pgjdbc] 1b8629: move version to 42.3.0 (#2322) |