Skip to content

Submit gradle-aware dependency information to Github #2

Submit gradle-aware dependency information to Github

Submit gradle-aware dependency information to Github #2

name: Dependency Submission
# todo: remove on PR before merging
on:
pull_request:
branches: [ 'main' ]
push:
branches: [ 'main' ]
permissions:
contents: write
jobs:
dependency-submission:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK 11
id: setup-java-11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Set JAVA_HOME
run: echo "JAVA_HOME=${{ steps.setup-java-11.outputs.path }}" >> $GITHUB_ENV
- name: Setup gradle properties
run: |
.github/scripts/gradle-properties.sh >> gradle.properties
cat gradle.properties
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v3
- name: Upload dependency-graph-reports
uses: actions/upload-artifact@v4
if: always()
with:
path: |
dependency-graph-reports/**