Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(s3stream): check whether dependencies of maven and gradle are the same #938

Merged
merged 3 commits into from
Feb 21, 2024
Merged
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
41 changes: 41 additions & 0 deletions .github/workflows/s3stream-check-dependency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Check Dependencies of Maven and Gradle

on:
pull_request_target:
types:
- opened
- reopened
- synchronize
paths:
- 's3stream/**'

jobs:
check-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
cache: "maven"
- uses: gradle/[email protected]
- name: Check Dependencies
working-directory: ./s3stream
run: |
mvn dependency:tree -DoutputType=dot -DoutputFile=maven-dependencies-raw.txt
./gradlew dependencies --configuration api > gradle-dependencies-raw.txt
cat maven-dependencies-raw.txt | grep "com.automq.elasticstream:s3stream" | grep "\->" | grep -v ":test\" ;" | sed 's/.* -> "\(.*\):[a-z]*".*/\1/' | sed 's/jar://' | sort | uniq > maven-dependencies.txt
cat gradle-dependencies-raw.txt | grep "\-\-\- " | sed 's/.*--- \(.*\) (.).*/\1/' | sort | uniq > gradle-dependencies.txt
echo -e "\n================================\nRaw Maven Dependencies: \n================================"
cat maven-dependencies-raw.txt
echo -e "\n================================\nRaw Gradle Dependencies:\n================================"
cat gradle-dependencies-raw.txt
echo -e "\n================================\nMaven Dependencies: \n================================"
cat maven-dependencies.txt
echo -e "\n================================\nGradle Dependencies: \n================================"
cat gradle-dependencies.txt
echo -e "\n================================\nDiff Maven and Gradle Dependencies"
diff maven-dependencies.txt gradle-dependencies.txt
Loading