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:
parent
3266cfdd1a
commit
b8add540bb
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user