pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Packaging 42.3.0 for MacPorts -- need some clarifications 3+ messages / 2 participants [nested] [flat]
* Packaging 42.3.0 for MacPorts -- need some clarifications @ 2021-10-23 14:00 Georges Martin <jrjsmrtn@gmail.com> 0 siblings, 1 reply; 3+ messages in thread From: Georges Martin @ 2021-10-23 14:00 UTC (permalink / raw) To: pgsql-jdbc@lists.postgresql.org Hello, folks. I occasionally package postgresql-jdbc for MacPorts since version 42.2.8. I am no Maven/Gradle expert but I'm using PostgreSQL since version 6 and Eclipse/pgCodeKeeper for development, including on macOS. Thus, packaging postgresql-jdbc for macOS is a "personal itch" ;-) The last version I packaged was 42.2.19. I'm working on 42.3.0 right now but I ran into some issues and wish for some clarifications... :-q 1. For 42.2.16, I followed the switch from Maven to Gradle for building. But it seems that, since 42.2.20, the Gradle files are not included in the tarballs anymore. Is that voluntary? 2. I successfully reverted back to Maven 3.8.2 to build 42.3.0 but what is the preferred way of building in the future: Maven of Gradle ? Thanks in advance, G. ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Packaging 42.3.0 for MacPorts -- need some clarifications @ 2021-10-24 11:30 Vladimir Sitnikov <sitnikov.vladimir@gmail.com> parent: Georges Martin <jrjsmrtn@gmail.com> 0 siblings, 1 reply; 3+ messages in thread From: Vladimir Sitnikov @ 2021-10-24 11:30 UTC (permalink / raw) To: Georges Martin <jrjsmrtn@gmail.com>; +Cc: pgsql-jdbc@lists.postgresql.org >I am no Maven/Gradle expert but I'm using PostgreSQL since version 6 and Eclipse/pgCodeKeeper for development, including on macOS. Thus, packaging postgresql-jdbc for macOS is a "personal itch" ;-) Nice. >For 42.2.16, I followed the switch from Maven to Gradle for building. But it seems that, since 42.2.20, the Gradle files are not included in the tarballs anymore. Is that voluntary? 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/ ). 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. c) You could grab the official release artifacts from 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/gradl... I guess the same might work for pgjdbc as well: the portfile could reference an artifact from repo1.maven.org rather than building it every time. The bonus point would be that the jar would be exactly the same as the official one. Have you considered option c (==grabbing the binaries from repo1.maven.org)? Vladimir сб, 23 окт. 2021 г. в 17:00, Georges Martin <jrjsmrtn@gmail.com>: > Hello, folks. > > I occasionally package postgresql-jdbc for MacPorts since version 42.2.8. > > I am no Maven/Gradle expert but I'm using PostgreSQL since version 6 and > Eclipse/pgCodeKeeper for development, including on macOS. Thus, packaging > postgresql-jdbc for macOS is a "personal itch" ;-) > > The last version I packaged was 42.2.19. I'm working on 42.3.0 right now > but I ran into some issues and wish for some clarifications... :-q > > 1. For 42.2.16, I followed the switch from Maven to Gradle for building. > But it seems that, since 42.2.20, the Gradle files are not included in the > tarballs anymore. Is that voluntary? > > 2. I successfully reverted back to Maven 3.8.2 to build 42.3.0 but what is > the preferred way of building in the future: Maven of Gradle ? > > > Thanks in advance, > > G. > > ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Packaging 42.3.0 for MacPorts -- need some clarifications @ 2021-10-26 08:28 Georges Martin <jrjsmrtn@gmail.com> parent: Vladimir Sitnikov <sitnikov.vladimir@gmail.com> 0 siblings, 0 replies; 3+ messages in thread From: Georges Martin @ 2021-10-26 08:28 UTC (permalink / raw) To: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>; +Cc: pgsql-jdbc@lists.postgresql.org 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/gradl... <https://github.com/macports/macports-ports/blob/cb0311519f9752e4507cf64ba042045690ac429a/devel/gradl...; 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= ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2021-10-26 08:28 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-10-23 14:00 Packaging 42.3.0 for MacPorts -- need some clarifications Georges Martin <jrjsmrtn@gmail.com> 2021-10-24 11:30 ` Vladimir Sitnikov <sitnikov.vladimir@gmail.com> 2021-10-26 08:28 ` Georges Martin <jrjsmrtn@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox