Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Java CI with Maven

on:
Expand All @@ -14,6 +9,9 @@ on:
pull_request:
branches: [ "main" ]

permissions:
contents: write # required for dependency submission

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -30,8 +28,10 @@ jobs:
- name: Build with Maven
run: mvn -B -f SimpleAPI/pom.xml package

# Only run dependency graph submission on push (not pull_request)
- name: Submit Dependency Snapshot
if: github.event_name == 'push'
uses: advanced-security/maven-dependency-submission-action@v5
with:
directory: SimpleAPI # <-- tell the action where pom.xml is
directory: SimpleAPI # path to pom.xml
# optional: maven-args: "-DskipTests"
2 changes: 1 addition & 1 deletion SimpleAPI/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>6.2.0</version>
<version>7.0.0</version>
</dependency>
</dependencies>
<profiles>
Expand Down