From 2dc9639a41b4dad19283bb8288f5225af4889520 Mon Sep 17 00:00:00 2001 From: Gang Li Date: Thu, 26 Mar 2026 09:20:59 +0800 Subject: [PATCH] github actions update * checkout to v6 * setup-jave to v5 * maven-settings to 4.0.0 * Remove useless Jenkinsfile and travis-settings * Add dependabot --- .github/dependabot.yml | 19 ++++++++++ .github/workflows/maven-build.yml | 8 ++--- Jenkinsfile | 25 ------------- travis-settings.xml | 58 ------------------------------- 4 files changed, 23 insertions(+), 87 deletions(-) create mode 100644 .github/dependabot.yml delete mode 100644 Jenkinsfile delete mode 100644 travis-settings.xml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..31de232 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,19 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +version: 2 +updates: + - package-ecosystem: "maven" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" + ignore: + - dependency-name: "*" + update-types: ["version-update:semver-major", "version-update:semver-minor"] + + - package-ecosystem: "github-actions" # Also update Github actions + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 39b954a..3775b03 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -38,16 +38,16 @@ jobs: env: MAVEN_OPTS: "-Xmx4096m -Xms2048m -XX:MaxMetaspaceSize=4096m -Xss8m" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up JDK 11 for x64 - uses: actions/setup-java@v3 + uses: actions/setup-java@v5 with: java-version: '11' distribution: 'temurin' architecture: x64 - - uses: s4u/maven-settings-action@v2.8.0 + - uses: s4u/maven-settings-action@v4.0.0 with: sonatypeSnapshots: true @@ -55,7 +55,7 @@ jobs: run: mvn -B -V clean verify -Prun-its -Pci - - uses: s4u/maven-settings-action@v2.8.0 + - uses: s4u/maven-settings-action@v4.0.0 if: ${{ github.event_name == 'push' }} with: servers: | diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 61c4af3..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,25 +0,0 @@ -pipeline { - agent { label 'maven-36-jdk11' } - stages { - stage('Prepare') { - steps { - sh 'printenv' - } - } - stage('Build') { - when { - expression { env.CHANGE_ID != null } // Pull request - } - steps { - sh 'mvn -B -V clean verify -Prun-its -Pci' - } - } - stage('Deploy') { - when { branch 'master' } - steps { - echo "Deploy" - sh 'mvn help:effective-settings -B -V clean deploy -e' - } - } - } -} diff --git a/travis-settings.xml b/travis-settings.xml deleted file mode 100644 index ac46c68..0000000 --- a/travis-settings.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - sonatype-nexus-snapshots - ${env.SONATYPE_USER} - ${env.SONATYPE_PASS} - - - - - snapshot-repo - - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - false - - - true - - - - - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - false - - - true - - - - - - - snapshot-repo - - \ No newline at end of file