TheTransitClock / transitime

TheTransitClock real-time transit information system
GNU General Public License v3.0
79 stars 30 forks source link

Upgrade platform to Java 11 #230

Open sheldonabrown opened 3 years ago

sheldonabrown commented 3 years ago

Is your enhancement request related to a problem? Please describe. Java 8 is reaching end of life. Java 11 is the next big jump (long term support version), and thus TTC should be upgraded to support 11.

Describe the solution you'd like At its simplest, the maven pom file should be configured with:

      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>11</source>
          <target>11</target>
        </configuration>
      </plugin>

The build and tests should still succeed, and the resulting jar files should execute as expected.

Additional context This does not imply all dependencies need to be upgraded -- only the ones that are found to be not compatible with Java 11.

scrudden commented 3 years ago

This requires hibernate to be upgraded as the SchemaGenerator fails if you use 11 as the target.

scrudden commented 3 years ago

Getting a list of classes in a package returns no results using java 11. Will need to investigate alternative method. This also stops the SchemaGenerator from working.

scrudden commented 3 years ago

Update of guava jar sorted out issue with getting list of classes for a package.

See branch tc_issue_230.

scrudden commented 3 years ago

Version on tc_issue_230 now functioning. Had to change name of columns in join tables which would would require change to existing database instances. Will look at annotation to change the default column name being used.