Skip to content

Adds module-info and upgrades source code to java 8 #2

Adds module-info and upgrades source code to java 8

Adds module-info and upgrades source code to java 8 #2

Workflow file for this run

name: Check java class version
on:
push:
branches:
- "*"
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build and check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu' # Alternative distribution options are available.
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and check
run: |
mvn -P sonar package
cd java8Test
mvn package
echo "checking ../javaluator-demo/target/javaluator-demo.jar"
java -jar target/javaReleaseTest.jar ../javaluator-demo/target/javaluator-demo.jar 52
# Let check the library itself in case demo pom points to an older release of the library
OUT="$(ls ../javaluator/target/javaluator*.jar | grep -v javadoc.jar | grep -v sources.jar)"
echo "checking $OUT"
java -jar target/javaReleaseTest.jar $OUT 52
OUT="$(ls ../javaluator-examples/target/javaluator-examples*.jar | grep -v javadoc.jar | grep -v sources.jar)"
echo "checking $OUT"
java -jar target/javaReleaseTest.jar $OUT 52