IMO make Java 8 the platform requirement.

Gary

On Mon, Aug 2, 2021, 11:06 Alex Herbert <alex.d.herb...@gmail.com> wrote:

> I have been looking at releasing RNG 1.4.
>
> I did a check to update the plugins using:
>
> mvn versions:display-plugin-updates -U -N
>
> I get an issue about requiring Maven 3.3.9 as a minimum version which
> requires JDK 7 [1]. Since the project targets JDK 6 this is not ideal.
>
> Very few versions have been updated since I did the last release. I checked
> out tag RNG_1_3 and I get the same issue. So either my current build
> environment is now mandating maven 3.3.9 or this was an issue on the last
> release and I did not notice it. Since I last updated plugins before the
> last release I think this is some third party dependency that is not
> explicitly controlled in the POM. FYI I am using:
>
> mvn -v
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: /usr/local/apache-maven-3.6.3
> Java version: 1.8.0_241, vendor: Oracle Corporation, runtime:
> /usr/lib/jvm/jdk1.8.0_241/jre
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "linux", version: "4.15.0-151-generic", arch: "amd64", family:
> "unix"
>
> If we require Java 1.6 as the target then this will require:
>
> 1. Tracking down what has created a requirement for Maven 3.3.9
> 2. A toolchain to configure Maven running under JDK 1.7+ to build the code
> using JDK 1.6 [2]
> 3. Updating the project to use Java 1.7
> 4. Documenting that Java 1.7 is required to build the project even though
> the target is 1.6
>
> Currently we use a profile for JDK 1.8+ plugins to run code checks. Travis
> CI runs a build on JDK 1.7 so the project will build on that platform. But
> there is no CI build available to run on JDK 1.6.
>
> There is nothing in the code to mandate an upgrade to 1.7. So an update
> would be just for convenience.
>
> My preference would be to update the documentation to state that it
> requires building with Java 1.7 and do at least this release targeting 1.6.
> Then update the code to 1.8 to take advantage of the new features there and
> skip 1.7.
>
> Is there a requirement that the platform that is targeted must be able to
> be used to build the code from source?
>
> Any opinions?
>
> Alex
>
> [1] https://maven.apache.org/docs/3.3.9/release-notes.html
> [2] https://maven.apache.org/guides/mini/guide-using-toolchains.html
>

Reply via email to