Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jC51P-0002QM-Eu for pgsql-jdbc@arkaria.postgresql.org; Wed, 11 Mar 2020 17:19:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jC51N-0004QI-Ah for pgsql-jdbc@arkaria.postgresql.org; Wed, 11 Mar 2020 17:19:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jC51N-0004QB-0q for pgsql-jdbc@lists.postgresql.org; Wed, 11 Mar 2020 17:19:53 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jC51K-0005Q6-1E for pgsql-jdbc@postgresql.org; Wed, 11 Mar 2020 17:19:52 +0000 Received: by mail-pf1-x42e.google.com with SMTP id z65so1698382pfz.8 for ; Wed, 11 Mar 2020 10:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=LnY9e9FdDKkEp72JzOqL7/quJVsSn0zgPsaKbum0UPA=; b=TQd8Lfjv36fxPj0rbHwoV2tVwvvlxCXgrPn1wi0ZmrYfyQECvlqfMHxImUYAWwUKW8 5zhW/E8L+Vr070fPdcEWeBahYVhRyptEccFq4Z7egrmyd866W/ryuX2jhVnkeTtTcdR9 Qb8xTPaYda7/blA9pwv0qgILziocnijw1LODo2pJV7N5eEV5sTyzf7NlDnCBp+cRsx2y WPnyCjPSna3q/zQ/rSeBRMWEJC0ZTaBDDF9VFvwL19fCn/dzaRTbs3uSseL/UhsLjssI L98/FMikMT/QG27vhzVivTjPyplFQXSuARPvSLrwoYs/Ud66oAc+9cB/JMNiO5hFbNmI sPfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=LnY9e9FdDKkEp72JzOqL7/quJVsSn0zgPsaKbum0UPA=; b=OK6gnhIb51N0hceFqiUnkwgUCGd8kTMuRHV1J7SvWMiNSM/qa5JqB9MgKmALrJxfed YbLG3SgqdUXp1TV6Whe9Zkef3rc6nk7enVH1eynp4AMytAEjkpEpZWCiuL/Xzea+8w/B FDJZy8Rqqx0amLTAjFIGNs0iUO28rfdvkbBdd1C+8mYGpdbt3u8JnE3rHbZ3CZ2QBkck 4Ujn5qIqJOx/J4dGrec7H8/2InpQfBxKdEc8GmAS0RMEOKG6PU0SZVDB17ldCTR9ST8Q b/RVMKSRzfIhh2Uw5GGQbfcXFkIcdQuW8fh/5XYn75Jrkp7w3pJ98u/Wwn3lFtXdcMv2 5wOQ== X-Gm-Message-State: ANhLgQ17p4cKTXerXnvFPjc61v+eIYRMzQ2EDFZzhurw9x+yiXxJC0WY ccxqZxa5L0C1iI/hAUS7JMg= X-Google-Smtp-Source: ADFU+vvdg5pQVn5ZoVEtUxZwQRWy5c/X2chZZP3R+4u3Q1N5op8RR2/ZeXtmi33UfQktCWT8N8M9RQ== X-Received: by 2002:a65:5306:: with SMTP id m6mr3875971pgq.5.1583947187591; Wed, 11 Mar 2020 10:19:47 -0700 (PDT) Received: from [10.7.111.175] ([65.200.105.250]) by smtp.gmail.com with ESMTPSA id n22sm6054030pjq.36.2020.03.11.10.19.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Mar 2020 10:19:47 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: pgjdbc: Maven -> Gradle, Java 6 => 7, JUnit 4 => 5 From: Steven Schlansker In-Reply-To: Date: Wed, 11 Mar 2020 10:19:46 -0700 Cc: PostgreSQL JDBC list Content-Transfer-Encoding: quoted-printable Message-Id: <84BD7FF6-E6A6-4582-819F-5067BA55919C@gmail.com> References: To: Vladimir Sitnikov X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Oooh, a voting thread! I have at least one commit so I'll consider = myself qualified ;) > On Mar 10, 2020, at 3:11 PM, Jorge Sol=C3=B3rzano = wrote: >=20 > Hi Vladimir, >=20 > * +-0 for Gradle, I don't have a strong opinion against it, but if you > think it would make it easier to maintain, its ok for me. -0 from me - I personally prefer Maven, but maintainer's choice! Most of these "Maven issues" can be fixed but of course it's not much = fun to figure out magic XML incantations to do so. >=20 > * +1 for drop Java 6 it's long dead now. ++++++1 > * +-0 for dropping Java 7, some companies are slow to move to newer > jvm versions (or are stuck on 7), but is a minor fraction that could > or should paid for support. +1, 7 is dead. > The reality is that even commercial JDBC drivers have long ago moved = to Java 8+. >=20 > * +1 for JUnit 5 +1 >=20 > * -1 Kotlin, (let's not enter in this discussion...) Agreed -1, please keep pgJDBC as vanilla Java - no Kotlin or Scala or = reactive or whatever! (until Virtual Threads hit jdk...) Boring and simple is a virtue, especially for drivers. >=20 > * Other -> supported versions of PostgreSQL, currently they are > supported since 8.2, released on December 5, 2006, and out of support > since December 5, 2011 > that's almost 9 years supporting in the driver an unsupported version > of PostgreSQL or in other words almost 14 years of total support, I > would personally follow > a policy of Server EOL + 5 years of support (more or less 10 years for > a version), so following that would mean to drop support for 8.x, and > support (until this year) the > version 9.0 that reach EOL on October 8, 2015 (+5 years on October, > 2020)... the truth is that there is not a lot of code dependent on > server version, but a smaller > removal/cleanup of code could improve maintenance and allow to have a > test matrix under control. >=20 > On Tue, Mar 10, 2020 at 9:39 PM Vladimir Sitnikov > wrote: >>=20 >> Hi, >>=20 >> It looks like its time to move forward and bump the dependencies and = tools: >>=20 >> * Maven->Gradle >>=20 >> As you might know, pgjdbc is built via Maven since 2015. >> It made the development, test, and release steps simpler. >> It made source-based builds easier, so distributions like Fedora got = up-to-date source-based pgjdbc builds. >>=20 >> However, Maven has certain limitations which cause confusion and = inconvenience. >> For instance, we had to split the code between pgjdbc and = pgjdbc-parent-poms repositories, which made it hard to update = dependencies. >>=20 >> Gradle makes build scripts more powerful, and it makes it easier to = maintain the build. >> For instance, with Gradle we no longer need parent-poms, the test = output is way easier to understand. >>=20 >> The PR is here: https://github.com/pgjdbc/pgjdbc/pull/1627 >>=20 >> The intention is to merge the PR soon, so please let me know if you = find issues with it. >>=20 >> Even though the build system switch should not be a user-visible = change, it would simplify the development. >> I understand it might bring disruption to the workflows, however, I = hope it won't be that bad. >>=20 >> * Minimal Java: 6 =3D=3D> 7 or 8 >>=20 >> So far the minimal supported Java was Java 6. That is pgjdbc was = buildable with JDK 1.6 (end of free public updates in 2013). >> I guess its time to drop Java 6, and bump it to 7 or 8. >>=20 >> Is there a real need to support Java 7? What do you think if we = require Java 8 and completely drop 6&7? >>=20 >> * JUnit: 4 =3D> 5 >>=20 >> JUnit5 makes it simpler to write certain test cases, however, it = requires Java 1.8 for execution. >> So far I guess >>=20 >> * Kotlin? >>=20 >> * Other? >>=20 >> Vladimir >=20 >=20