Skip to content

Commit 5f4fe36

Browse files
committed
Use java 10 for the release
`nexus-staging-maven-plugin` is failing otherwise. https://github.com/sonatype/nexus-maven-plugins/tree/master/staging/maven-plugin ``` Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module ```
1 parent 429a1e0 commit 5f4fe36

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

release.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@ DRY_RUN=0
8080
# Enter project dir
8181
cd "$FS_HOME"
8282

83+
echo "Java version used:"
84+
java --version
85+
if promptyn "Do you want to use this version?"
86+
then
87+
echo "Let's start the release process"
88+
else
89+
echo "switch to another java version by using for example:"
90+
echo "sdk use java 10.0.2-oracle"
91+
exit 1
92+
fi
93+
8394
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
8495
CURRENT_VERSION=`mvn help:evaluate -Dexpression=project.version|grep -Ev '(^\[|Download\w+:)'`
8596

0 commit comments

Comments
 (0)