Use maven.compiler.release to prevent impossible JDK api usage

See gh-34365
pull/34421/head
Martin Theiss 2 years ago committed by Moritz Halbritter
parent 512afc2efa
commit a073ef80e8

@ -23,6 +23,7 @@ publishing.publications.withType(MavenPublication) {
delegate."resource.delimiter"('@') delegate."resource.delimiter"('@')
delegate."maven.compiler.source"('${java.version}') delegate."maven.compiler.source"('${java.version}')
delegate."maven.compiler.target"('${java.version}') delegate."maven.compiler.target"('${java.version}')
delegate."maven.compiler.release"('${java.version}')
delegate."project.build.sourceEncoding"('UTF-8') delegate."project.build.sourceEncoding"('UTF-8')
delegate."project.reporting.outputEncoding"('UTF-8') delegate."project.reporting.outputEncoding"('UTF-8')
} }

Loading…
Cancel
Save