Skip to content

Commit

Permalink
Update Java version to 21
Browse files Browse the repository at this point in the history
  • Loading branch information
rien committed Feb 12, 2024
1 parent 45a5680 commit 3bfaa88
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"judge": "java",
"image": "dodona-java17"
"image": "dodona-java21"
}
2 changes: 1 addition & 1 deletion run
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,6 @@ fi
dodona close-tab

# Running the tests
java -Xmx"${memory_limit}k" -cp ".:${worklibs}:${testlibs}:judge.jar:${resources}/properties" -Ddodona.language="${natural_language}" -Ddodona.output_cutoff="${generated_output_cutoff}" dodona.junit.JUnitJSON
java -Djava.security.manager=allow -Xmx"${memory_limit}k" -cp ".:${worklibs}:${testlibs}:judge.jar:${resources}/properties" -Ddodona.language="${natural_language}" -Ddodona.output_cutoff="${generated_output_cutoff}" dodona.junit.JUnitJSON

dodona close-judgement
9 changes: 9 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env sh

# Test this Judge by running the integration tests in the docker image
image="dodona-java21:latest"

docker run \
--mount type=bind,source=$PWD,destination=/home/runner/workdir,readonly \
"$image" \
-- ./integration-tests/run

0 comments on commit 3bfaa88

Please sign in to comment.