File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,9 +22,16 @@ if [ "0$JDK_MAJOR" -eq 8 ]; then
2222fi
2323JNR_LIVE_PROJECTS=" jnr-enxio:0.32.18"
2424patch=true
25+ srct=false
2526if [ " 0$JDK_MAJOR " -eq 17 ] ; then
2627 JNR_LIVE_PROJECTS=" jnr-enxio:0.32.6"
2728 patch=" true"
29+ if [ " 0$OS_VERSION_MAJOR " -le 7 ] ; then
30+ JNR_LIVE_PROJECTS=" jnr-enxio:0.24"
31+ patch=" false"
32+ srct=" true"
33+ export JAVA_TOOL_OPTIONS=" $JAVA_TOOL_OPTIONS --add-opens=java.base/java.io=ALL-UNNAMED"
34+ fi
2835elif [ " 0$JDK_MAJOR " -eq 11 ] ; then
2936 JNR_LIVE_PROJECTS=" jnr-enxio:0.24"
3037 patch=" false"
@@ -62,8 +69,10 @@ patch -p0 << EOF
6269 <artifactId>maven-bundle-plugin</artifactId>
6370EOF
6471 fi
65- # sed "s;<maven.compiler.source>.*;<maven.compiler.source>$JDK_MAJOR</maven.compiler.source>;" -i pom.xml
66- # sed "s;<maven.compiler.target>.*;<maven.compiler.target>$JDK_MAJOR</maven.compiler.target>;" -i pom.xml
72+ if [ " x$srct " = " xtrue" ] ; then
73+ sed " s;<maven.compiler.source>.*;<maven.compiler.source>$JDK_MAJOR </maven.compiler.source>;" -i pom.xml
74+ sed " s;<maven.compiler.target>.*;<maven.compiler.target>$JDK_MAJOR </maven.compiler.target>;" -i pom.xml
75+ fi
6776 $EX_MVN $MVOPTS -Dmaven.javadoc.skip=true clean install
6877 popd
6978done
You can’t perform that action at this time.
0 commit comments