Fix build for java 11

When java 11 is detected the preview features are enabled generating
problems with other libraries built on this.

Since these features are not needed for the library to work the option
is removed from the pom file before to compile the package.
This commit is contained in:
Marco Fargetta 2023-12-04 17:22:20 +01:00
parent 3266cfdd1a
commit b8add540bb

View File

@ -44,6 +44,7 @@ sed -i 's/\r//' LICENSE NOTICE
%pom_remove_dep javax.measure:jsr-275
rm src/test/java/com/fasterxml/jackson/databind/introspect/NoClassDefFoundWorkaroundTest.java
%pom_xpath_remove pom:classpathDependencyExcludes
%pom_xpath_remove '//pom:compilerArgs/pom:arg[contains(text(),"enable-preview")]'
# TestTypeFactoryWithClassLoader fails to compile
# - it's the only test that uses powermock, so drop the powermock dependencies