Closed adriens closed 1 year ago
Why this is not enough in the pom.xml
for you ? :
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
...
</properties>
Actually my runtime is the following :
❯ java -version openjdk version "17.0.5" 2022-10-18 OpenJDK Runtime Environment Temurin-17.0.5+8 (build 17.0.5+8) OpenJDK 64-Bit Server VM Temurin-17.0.5+8 (build 17.0.5+8, mixed mode, sharing)
... and I would like it to fail to force me to build it with the legacy java runtime... but I cal achieve the build without any problem :
Actually my runtime is the following :
❯ java -version openjdk version "17.0.5" 2022-10-18 OpenJDK Runtime Environment Temurin-17.0.5+8 (build 17.0.5+8) OpenJDK 64-Bit Server VM Temurin-17.0.5+8 (build 17.0.5+8, mixed mode, sharing) ... and I would like it to fail to force me to build it with the legacy java runtime... but I cal achieve the build without any problem :
Why do you want that ?
Javac
is designed to be backward compatible (through -target
options), what do you need more ?
... what if someone want to use the Record
in a PR ?
... what if someone want to use the
Record
in a PR ?
He will get a compilation error on CI (and locally) because of this
👍
The main "feature" of the lib is to only require Java 8 for legacy systems.
To make sure the project is always built with a proper SDK version, use Maven Enforcer