Skip to content

Commit 2387a85

Browse files
committed
Quick test to upgrade to Java 11 #455
1 parent d7d693f commit 2387a85

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ jobs:
1010
runs-on: ubuntu-22.04
1111
steps:
1212
- uses: actions/checkout@v5
13-
- name: Set up JDK 1.8
14-
uses: actions/setup-java@v5
13+
- name: Set up JDK 11
14+
uses: actions/setup-java@v1
1515
with:
16-
distribution: temurin
17-
java-version: 8
16+
java-version: 11
1817
- name: Install and start Elasticsearch
1918
env:
2019
ES_DOWNLOAD_URL: https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${{ env.ES_VERSION }}.tar.gz

monit_restart.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ case $ACTION in
3434
if [ -f target/universal/stage/RUNNING_PID ]; then
3535
kill $(cat target/universal/stage/RUNNING_PID)
3636
fi
37-
JAVA_OPTS="$JAVA_OPTS -XX:+ExitOnOutOfMemoryError" sbt --java-home $JAVA_HOME "start $PORT"
37+
sbt clean
38+
sbt --java-home $JAVA_HOME stage
39+
JAVA_OPTS="$JAVA_OPTS -XX:+ExitOnOutOfMemoryError" ./target/universal/stage/bin/lobid-gnd -Dhttp.port=$PORT
3840
;;
3941
stop)
4042
if [ -f target/universal/stage/RUNNING_PID ]; then

0 commit comments

Comments
 (0)