From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | Stephen Nelson <stephen(at)eccostudio(dot)com> |
Cc: | List <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Migration to Maven |
Date: | 2015-12-01 13:09:10 |
Message-ID: | CADK3HHK0mtQ0QaUixoDq4-BrB6cSWQNhm7__k_JC-07JqcAkcA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On 1 December 2015 at 07:54, Stephen Nelson <stephen(at)eccostudio(dot)com> wrote:
> Sorry for top posting but using a mobile device.
>
> There is a Maven plugin Animal Sniffer to check if you are breaking JDK
> compatibility.
>
> I'm happy with either option so let's get this PR merged before the end of
> 2015!
>
Quick heads up. I'm on vacation and away from the internet from 4th through
12th
But yes, I'd like this pushed in 2015
Dave Cramer
davec(at)postgresintl(dot)com
www.postgresintl.com
> On Mon, 30 Nov 2015, 21:18 Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
> wrote:
>
> >but has the downside or creating additional workload
>
> Another downside is inability to test if PR breaks build for JDK 6.
> Note: development of "current" version should be done via JDK8, so it
> is super easy to use new APIs by mistake (e.g. Map#replace,
> Map#getOrDefault, or whatever).
>
>
>
> Current travis CI setup is very good as it provides fast feedback for
> different JDKs.
>
> I've updated https <https://github.com/pgjdbc/pgjdbc/pull/435>://
> <https://github.com/pgjdbc/pgjdbc/pull/435>github.com
> <https://github.com/pgjdbc/pgjdbc/pull/435>/
> <https://github.com/pgjdbc/pgjdbc/pull/435>pgjdbc
> <https://github.com/pgjdbc/pgjdbc/pull/435>/
> <https://github.com/pgjdbc/pgjdbc/pull/435>pgjdbc
> <https://github.com/pgjdbc/pgjdbc/pull/435>/pull/435
> <https://github.com/pgjdbc/pgjdbc/pull/435> to reflect option A.
> It does exclude all the testing as I was focused on a release procedure.
> It does point to my github fork as release involves git tag/push/etc.
>
> I use the same artifactId, and include JRE to version.
> There are two reasons for that:
> 1) That ensures there will be just a single pgjdbc artifact in classpath
> 2) It will simplify life for third party projects, as switch from
> pgjdbc-jre7 to pgjdbc-jre8 artifactId would require updating of lots
> of poms while version can be fixed in a dependencyManagement, thus
> there can be a single "9.4-jre7" to "9.4" switch.
>
> maven-toolchains-plugin allows to specify per-module JDK version, so
> you just mvn and it uses the proper JDK.
> I did not figure proper travis configuration yet, however I think it
> should not be hard.
>
> It boils down the release procedure to:
> Release for jre8
> 1) mvn release:clean release:prepare, enter, enter, enter
> 2) mvn release:perform
>
> Release for jre7
> 3) cd core-jre7; mvn release:clean release:prepare, enter, type <next
> version>; enter, enter
> 4) mvn release:perform
>
> Release for jre6
> 3) cd core-jre6; mvn release:clean release:prepare, enter, type <next
> version>; enter, enter
> 4) mvn release:perform
>
> For regular JDK8 development, it does not require you to setup
> toolchains.xml.
> However, if you do, you'll be able to build core-jre7 with a matter of
> mvn install (no need to play with java_home).
>
> Vladimir
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Vladimir Sitnikov | 2015-12-01 13:10:02 | Re: Migration to Maven |
Previous Message | Stephen Nelson | 2015-12-01 12:54:54 | Re: Migration to Maven |