Skip to content

Commit

Permalink
Merge pull request #7674 from mbien/setup-java-for-dep-checker
Browse files Browse the repository at this point in the history
binaries-list dependency checker needs to set up the env for maven
  • Loading branch information
mbien authored Aug 15, 2024
2 parents 42d8692 + 26af3c7 commit 72d62a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/dependency-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,17 @@ jobs:
submodules: false
show-progress: false

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'zulu'

- name: Check Dependencies
run: |
DEPS=org.apache.maven:maven-artifact:3.9.8,org.apache.maven.indexer:search-backend-smo:7.1.4
mvn eu.maveniverse.maven.plugins:toolbox:gav-copy-transitive -Dgav=$DEPS -DsinkSpec="flat(./lib)"
echo "<pre>" >> $GITHUB_STEP_SUMMARY
$JAVA_HOME_21_X64/bin/java -cp "lib/*" .github/scripts/BinariesListUpdates.java ./ | tee -a $GITHUB_STEP_SUMMARY
java -cp "lib/*" .github/scripts/BinariesListUpdates.java ./ | tee -a $GITHUB_STEP_SUMMARY
echo "</pre>" >> $GITHUB_STEP_SUMMARY
rm -Rf lib

0 comments on commit 72d62a3

Please sign in to comment.