File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,15 @@ 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+ fi
2834elif [ " 0$JDK_MAJOR " -eq 11 ] ; then
2935 JNR_LIVE_PROJECTS=" jnr-enxio:0.24"
3036 patch=" false"
@@ -62,8 +68,10 @@ patch -p0 << EOF
6268 <artifactId>maven-bundle-plugin</artifactId>
6369EOF
6470 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
71+ if [ " x$srct " = " xtrue" ] ; then
72+ sed " s;<maven.compiler.source>.*;<maven.compiler.source>$JDK_MAJOR </maven.compiler.source>;" -i pom.xml
73+ sed " s;<maven.compiler.target>.*;<maven.compiler.target>$JDK_MAJOR </maven.compiler.target>;" -i pom.xml
74+ fi
6775 $EX_MVN $MVOPTS -Dmaven.javadoc.skip=true clean install
6876 popd
6977done
You can’t perform that action at this time.
0 commit comments