Skip to content

Commit 6c9f86a

Browse files
committed
Fixup: update launcher scripts, make scala plugin use maven.compiler.release
1 parent 2805664 commit 6c9f86a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

eclair-front/src/main/resources/eclair-front.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,17 +284,18 @@ java_version_check() {
284284
echo
285285
echo No java installations was detected.
286286
echo Please go to 'https://adoptium.net/temurin/releases/?package=jre&version=21' and download
287+
echo a valid Java Runtime and install before running eclair-front.
287288
echo
288289
exit 1
289290
else
290291
local major=$(echo "$java_version" | cut -d'.' -f1)
291292
if [[ "$major" -eq "1" ]]; then
292293
local major=$(echo "$java_version" | cut -d'.' -f2)
293294
fi
294-
if [[ "$major" -lt "8" ]]; then
295+
if [[ "$major" -lt "21" ]]; then
295296
echo
296297
echo The java installation you have is not up to date, eclair-front requires
297-
echo at least version 1.8+ \(version 11 recommended\) but you have version $java_version
298+
echo at least version 21+ \(version 21 recommended\) but you have version $java_version
298299
echo
299300
echo Please go to 'https://adoptium.net/temurin/releases/?package=jre&version=21' and download
300301
echo a valid Java Runtime and install before running eclair-front.

eclair-node/src/main/resources/eclair-node.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,17 +284,18 @@ java_version_check() {
284284
echo
285285
echo No java installations was detected.
286286
echo Please go to 'https://adoptium.net/temurin/releases/?package=jdk&version=21' and download
287+
echo a valid Java Runtime and install before running eclair-node.
287288
echo
288289
exit 1
289290
else
290291
local major=$(echo "$java_version" | cut -d'.' -f1)
291292
if [[ "$major" -eq "1" ]]; then
292293
local major=$(echo "$java_version" | cut -d'.' -f2)
293294
fi
294-
if [[ "$major" -lt "8" ]]; then
295+
if [[ "$major" -lt "21" ]]; then
295296
echo
296297
echo The java installation you have is not up to date, eclair-node requires
297-
echo at least version 1.8+ \(version 11 recommended\) but you have version $java_version
298+
echo at least version 21+ \(version 21 recommended\) but you have version $java_version
298299
echo
299300
echo Please go to 'https://adoptium.net/temurin/releases/?package=jdk&version=21' and download
300301
echo a valid Java Runtime and install before running eclair-node.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
<arg>-Werror</arg>
151151
<arg>-unchecked</arg>
152152
<arg>-deprecation</arg>
153-
<arg>-release:21</arg>
153+
<arg>-release:${maven.compiler.release}</arg>
154154
</args>
155155
<jvmArgs>
156156
<jvmArg>-Xmx1024m</jvmArg>

0 commit comments

Comments
 (0)