CDLUC3 / mrt-doc

Documentation and Information regarding the Merritt repository
8 stars 4 forks source link

BOM update 2.1 -> 2.2 + Java 11 compile #2068

Open dloy opened 1 month ago

dloy commented 1 month ago

Last version BOM 1.8 equivalent 2.1.

See: https://github.com/CDLUC3/mrt-core2/security/dependabot/70

Upgrade commons-io:commons-io to version 2.14.0 or later.

For example:

<dependency>
  <groupId>commons-io</groupId>
  <artifactId>commons-io</artifactId>
  <version>[2.14.0,)</version>
</dependency>

Move to full compile Java 11

The current BOM 1.8 includes jars compiled under java 11. If pure java 8 is used the war files will fail because of the following:

            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>1.5.7</version>
            </dependency>

            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-core</artifactId>
                <version>1.5.7</version>
            </dependency>

Compile all jars using a java 11.

In core2/parprop/pom.xml:

<maven.compiler.release>8</maven.compiler.release>

to

<maven.compiler.release>11</maven.compiler.release>