-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(s3stream): check whether dependencies of maven and gradle are t…
…he same Signed-off-by: Ning Yu <[email protected]>
- Loading branch information
1 parent
7a26b6c
commit 523a3ba
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
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 | ||
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 "\n================================\nRaw Maven Dependencies: \n================================" | ||
cat maven-dependencies-raw.txt | ||
echo "\n================================\nRaw Gradle Dependencies:\n================================" | ||
cat gradle-dependencies-raw.txt | ||
echo "\n================================\nMaven Dependencies: \n================================" | ||
cat maven-dependencies.txt | ||
echo "\n================================\nGradle Dependencies: \n================================" | ||
cat gradle-dependencies.txt | ||
echo "\n================================\nDiff Maven and Gradle Dependencies" | ||
diff maven-dependencies.txt gradle-dependencies.txt |