I try to use org.hsqldb.hsqldb in my maven project. The requirement of the client is to use JDK 1.8. The current version of org.hsqldb.hsqldb is 2.6.1, however, it seems it does not work with Java 1.8. How can I observe the version of hsqldb that compiles with JDK 1.8?
Thanks in advance.
CodePudding user response:
First read the release notes for hsqldb:
21 March 2021 - version 2.6.0
-- version 2.6.0 jar requires JRE 11 or later - tested up to Java 16 RC
-- version 2.6.0 alternative jar requires JRE 8 or later
The documentation clearly states that 2.6.0 needs an alternative jar to work with jdk8.
Inpect the hsqldb maven repo to verify that there is an alternative jar provided for jdk8: hsqldb-2.6.1-jdk8.jar
To import it with maven, you need to use a classifier
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.6.1</version>
<classifier>jdk8</classifier>
</dependency>