Skip to content

Commit

Permalink
Fix Java 8 build
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus committed Oct 22, 2024
1 parent 61ff064 commit d481cc8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,21 @@ jobs:
run: |
if [ -z "${MAVEN_GPG_PASSPHRASE}" ]
then
# Forcing dependency check version to a version compatible
# with Java 8 since version does not matter due to
# dependencyCheck.skip=true. But otherwise Maven initialization
# fails with error: "java.lang.TypeNotPresentException:
# Type org.owasp.dependencycheck.maven.CheckMojo not present".
# shellcheck disable=SC2086
./mvnw ${MAVEN_CLI_OPTS} -DdependencyCheck.skip=true -Dgpg.skip=true verify
./mvnw ${MAVEN_CLI_OPTS} -DdependencyCheck.version=10.0.4 -DdependencyCheck.skip=true -Dgpg.skip=true verify
else
# Forcing dependency check version to a version compatible
# with Java 8 since version does not matter due to
# dependencyCheck.skip=true. But otherwise Maven initialization
# fails with error: "java.lang.TypeNotPresentException:
# Type org.owasp.dependencycheck.maven.CheckMojo not present".
# shellcheck disable=SC2086
./mvnw ${MAVEN_CLI_OPTS} -DdependencyCheck.skip=true verify
./mvnw ${MAVEN_CLI_OPTS} -DdependencyCheck.version=10.0.4 -DdependencyCheck.skip=true verify
fi
- name: Publish site
env:
Expand Down

0 comments on commit d481cc8

Please sign in to comment.