This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new ea17bd06a3c Add dependency convergence check (#30733)
ea17bd06a3c is described below
commit ea17bd06a3c4f901f9bf2e9ad279e140dac687bb
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Mon Apr 1 19:47:00 2024 +0800
Add dependency convergence check (#30733)
* Add : add dependency-convergence check for nightly
* Add : add switch for dependency-convergence check
---
.github/workflows/nightly-check.yml | 20 ++++++++++++++++++++
pom.xml | 3 ++-
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/nightly-check.yml
b/.github/workflows/nightly-check.yml
index 2cbe5407e0d..d6a21d1e74d 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -194,3 +194,23 @@ jobs:
stale-issue-message: >
There hasn't been any activity on this issue recently, and in
order to prioritize active issues, it will be
marked as stale.
+
+ check-dependency-convergence:
+ if: github.repository == 'apache/shardingsphere'
+ name: Check - Dependency Convergence
+ needs: global-environment
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/cache@v4
+ with:
+ path: ~/.m2/repository
+ key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-
+ - name: Run Dependency Convergence Check
+ run: |
+ sed -i '/<requireMavenVersion>/i \
<dependencyConvergence/>' pom.xml
+ ./mvnw clean install -DskipTests -T1C -Dmaven.enforcer.fail=false
+
diff --git a/pom.xml b/pom.xml
index 82d06d1cda3..ed1caf02f52 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,6 +55,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.deploy.skip>false</maven.deploy.skip>
<maven.javadoc.skip>true</maven.javadoc.skip>
+ <maven.enforcer.fail>true</maven.enforcer.fail>
<shade.package>org.apache.shardingsphere.shade</shade.package>
<antlr.output.directory>${basedir}/target/generated-sources/antlr4</antlr.output.directory>
@@ -667,7 +668,7 @@
<version>${java.version}</version>
</requireJavaVersion>
</rules>
- <fail>true</fail>
+ <fail>${maven.enforcer.fail}</fail>
</configuration>
</execution>
</executions>