From 1a94ccb7740ce19c24fe09ddd3ea610960376687 Mon Sep 17 00:00:00 2001 From: 3keyroman Date: Sun, 3 Sep 2023 13:10:25 +0200 Subject: [PATCH 01/12] Increase version number --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d84b2dd..3cf6226 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ com.czertainly dependencies - 1.1.0 + 1.1.1-SNAPSHOT CZERTAINLY-Dependencies pom From 8e7b48bf419b291bfb91c9948902c4a6d787936f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=BDubom=C3=ADr=20Wassermann?= <76479559+lubomirw@users.noreply.github.com> Date: Tue, 14 Nov 2023 21:48:29 +0100 Subject: [PATCH 02/12] Update release.yml --- .github/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/release.yml b/.github/release.yml index 90f2eeb..5e4c386 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -12,6 +12,9 @@ changelog: - title: Bug Fixes 🔩 labels: - bug + - title: Dependencies ⚙️ + labels: + - dependencies - title: Other 🗄 labels: - "*" From bb40d4ff9b8a04bb643f3f003c2f4d204a1e405c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 Nov 2023 21:55:21 +0100 Subject: [PATCH 03/12] Update actions/github-script action to v7 (#37) --- .github/workflows/workflow_run_pruner.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow_run_pruner.yml b/.github/workflows/workflow_run_pruner.yml index 506c40b..0bfb16c 100644 --- a/.github/workflows/workflow_run_pruner.yml +++ b/.github/workflows/workflow_run_pruner.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Prune cancelled/skipped runs - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{ secrets.GH_ACTIONS_PERSONAL_ACCESS_TOKEN }} script: | @@ -42,7 +42,7 @@ jobs: } - name: Prune runs older than 30 days - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{ secrets.GH_ACTIONS_PERSONAL_ACCESS_TOKEN }} script: | From 7ff7174c1e9dc8751251d3c47c99bec7dc9c9c5d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 Nov 2023 21:57:08 +0100 Subject: [PATCH 04/12] Update actions/checkout action to v4 (#32) --- .github/workflows/build.yml | 4 ++-- .github/workflows/publish-package.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 032326b..a714dd0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: name: Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up JDK 17 @@ -35,7 +35,7 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up JDK 17 diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 1508573..327fd3d 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -15,7 +15,7 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-java@v3 with: java-version: '17' From cf77f9618b6254c8f5238612281a9f1af33d6fc3 Mon Sep 17 00:00:00 2001 From: 3keyroman <46850604+3keyroman@users.noreply.github.com> Date: Sun, 16 Jun 2024 11:15:44 +0200 Subject: [PATCH 05/12] Update dependency versions (#42) - Java version 21 - Spring Boot 3.3.0 - Additional dependencies --- pom.xml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/pom.xml b/pom.xml index 3cf6226..f1c746c 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.springframework.boot spring-boot-starter-parent - 3.0.9 + 3.3.0 com.czertainly @@ -44,20 +44,22 @@ UTF-8 - 17 - 17 - 0.8.10 + 21 + 21 + 0.8.12 3KeyCompany_CZERTAINLY-Dependencies - 3.0.9 - 2.14.3 + 3.3.1 + 2.17.1 3.0.1 - 1.7.30 + 2.0.13 2.3.0 - 4.0.1 - 3.9.0 + 4.0.2 + 3.11.1 1.10 - 2.2.15 - 1.76 + 2.2.22 + 1.78.1 + 6.5.2.Final + 3.2.4 @@ -233,7 +235,7 @@ org.hibernate.orm.tooling hibernate-enhance-maven-plugin - 6.1.7.Final + ${hibernate-enhance-maven-plugin.version} compile @@ -276,7 +278,7 @@ org.apache.maven.plugins maven-gpg-plugin - 3.1.0 + ${maven-gpg-plugin.version} sign-artifacts From 25e4b57d098ad899b0b5fd61080a50307990b3f9 Mon Sep 17 00:00:00 2001 From: 3keyroman Date: Sun, 16 Jun 2024 16:55:05 +0200 Subject: [PATCH 06/12] Update wiremock version and Java in actions --- .github/workflows/build.yml | 12 ++++++------ pom.xml | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a714dd0..9604af2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,10 +15,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: Set up JDK 21 + uses: actions/setup-java@v4 with: - java-version: 17 + java-version: 21 distribution: 'temurin' - name: Cache Maven packages uses: actions/cache@v3 @@ -38,10 +38,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: Set up JDK 21 + uses: actions/setup-java@v4 with: - java-version: 17 + java-version: 21 distribution: 'temurin' - name: Cache SonarQube packages uses: actions/cache@v3 diff --git a/pom.xml b/pom.xml index f1c746c..990b5ed 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,7 @@ 3KeyCompany_CZERTAINLY-Dependencies 3.3.1 2.17.1 - 3.0.1 + 3.6.0 2.0.13 2.3.0 4.0.2 @@ -164,7 +164,7 @@ test - com.github.tomakehurst + org.wiremock wiremock-standalone ${wiremock.version} test From 1c66681e314220a07ca234e7e2c71c68f8c7dbb4 Mon Sep 17 00:00:00 2001 From: 3keyroman Date: Sun, 16 Jun 2024 16:57:10 +0200 Subject: [PATCH 07/12] Update actions --- .github/workflows/build.yml | 4 ++-- .github/workflows/publish-package.yml | 8 ++++---- .github/workflows/workflow_run_pruner.yml | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9604af2..0d9db5e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: java-version: 21 distribution: 'temurin' - name: Cache Maven packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} @@ -50,7 +50,7 @@ jobs: key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - name: Cache Maven packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 327fd3d..f94e3e2 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -16,9 +16,9 @@ jobs: packages: write steps: - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: - java-version: '17' + java-version: '21' distribution: 'temurin' server-id: ossrh server-username: MAVEN_USERNAME @@ -33,9 +33,9 @@ jobs: env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: - java-version: '17' + java-version: '21' distribution: 'temurin' - name: Publish to GitHub Packages run: mvn --batch-mode -Pgithub source:jar javadoc:jar -f pom.xml deploy diff --git a/.github/workflows/workflow_run_pruner.yml b/.github/workflows/workflow_run_pruner.yml index 0bfb16c..7ecff8b 100644 --- a/.github/workflows/workflow_run_pruner.yml +++ b/.github/workflows/workflow_run_pruner.yml @@ -56,7 +56,6 @@ jobs: const workflows = [ 'build.yml', - 'codeql.yml', 'publish-package.yml', 'workflow_run_pruner.yml' ] From 2ce1e75072971334bd92b4537981139cc0f58383 Mon Sep 17 00:00:00 2001 From: 3keyroman Date: Sun, 16 Jun 2024 16:57:50 +0200 Subject: [PATCH 08/12] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d9db5e..97ae30d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: java-version: 21 distribution: 'temurin' - name: Cache SonarQube packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar From 1ea1c165a9e412cebadb735965a746fde33f4168 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 3 Jul 2024 09:32:34 +0200 Subject: [PATCH 09/12] Update dependency org.springframework.boot:spring-boot-starter-parent to v3.3.1 (#22) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 990b5ed..b7d17ec 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.springframework.boot spring-boot-starter-parent - 3.3.0 + 3.3.1 com.czertainly From 33a287c9c4546f74a2880dc70048e46dc7651f87 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 3 Jul 2024 09:34:34 +0200 Subject: [PATCH 10/12] Update dependency org.wiremock:wiremock-standalone to v3.8.0 (#44) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b7d17ec..1ea1833 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,7 @@ 3KeyCompany_CZERTAINLY-Dependencies 3.3.1 2.17.1 - 3.6.0 + 3.8.0 2.0.13 2.3.0 4.0.2 From 323e00f7665d2473323ad5340ac0b16a95f43f0f Mon Sep 17 00:00:00 2001 From: lubomirw <76479559+lubomirw@users.noreply.github.com> Date: Fri, 30 Aug 2024 17:21:59 +0200 Subject: [PATCH 11/12] Update dependencies minor versions (#57) --- pom.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 1ea1833..db04821 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.springframework.boot spring-boot-starter-parent - 3.3.1 + 3.3.3 com.czertainly @@ -48,18 +48,18 @@ 21 0.8.12 3KeyCompany_CZERTAINLY-Dependencies - 3.3.1 - 2.17.1 - 3.8.0 + 3.3.3 + 2.17.2 + 3.9.1 2.0.13 2.3.0 - 4.0.2 + 4.0.3 3.11.1 1.10 - 2.2.22 + 2.2.23 1.78.1 6.5.2.Final - 3.2.4 + 3.2.5 From 1f948b57e4d195810a6c37cea4642e71501d48a9 Mon Sep 17 00:00:00 2001 From: 3keyroman <46850604+3keyroman@users.noreply.github.com> Date: Wed, 4 Sep 2024 20:12:12 +0200 Subject: [PATCH 12/12] Update to release version 1.2.0 (#58) --- .github/workflows/workflow_run_pruner.yml | 96 ----------------------- README.md | 2 +- pom.xml | 18 ++--- 3 files changed, 10 insertions(+), 106 deletions(-) delete mode 100644 .github/workflows/workflow_run_pruner.yml diff --git a/.github/workflows/workflow_run_pruner.yml b/.github/workflows/workflow_run_pruner.yml deleted file mode 100644 index 7ecff8b..0000000 --- a/.github/workflows/workflow_run_pruner.yml +++ /dev/null @@ -1,96 +0,0 @@ -# This workflow prunes old workflow runs for an entire repository. - -name: Workflow Run Pruner - -on: - workflow_dispatch: - -jobs: - prune: - runs-on: ubuntu-latest - timeout-minutes: 10 - - steps: - - name: Prune cancelled/skipped runs - uses: actions/github-script@v7 - with: - github-token: ${{ secrets.GH_ACTIONS_PERSONAL_ACCESS_TOKEN }} - script: | - const cancelled = await github.actions.listWorkflowRunsForRepo({ - owner: context.repo.owner, - per_page: 100, - repo: context.repo.repo, - status: 'cancelled', - }); - - const skipped = await github.actions.listWorkflowRunsForRepo({ - owner: context.repo.owner, - per_page: 100, - repo: context.repo.repo, - status: 'skipped', - }); - - for (const response of [cancelled, skipped]) { - for (const run of response.data.workflow_runs) { - console.log(`Run id ${run.id} of '${run.name}' is a cancelled/skipped run. Deleting...`); - await github.actions.deleteWorkflowRun({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: run.id - }); - } - } - - - name: Prune runs older than 30 days - uses: actions/github-script@v7 - with: - github-token: ${{ secrets.GH_ACTIONS_PERSONAL_ACCESS_TOKEN }} - script: | - const days_to_expiration = 30; - const ms_in_day = 86400000; - const now = Date.now(); - const pages = 5; - - // we don't want to prune old runs from test.yml - // because we track the duration of runs over time - - const workflows = [ - 'build.yml', - 'publish-package.yml', - 'workflow_run_pruner.yml' - ] - - let runs_to_delete = []; - - for (const workflow of workflows) { - for (let page = 0; page < pages; page += 1) { - let response = await github.actions.listWorkflowRuns({ - owner: context.repo.owner, - page: page, - per_page: 100, - repo: context.repo.repo, - workflow_id: workflow - }); - - if (response.data.workflow_runs.length > 0) { - for (const run of response.data.workflow_runs) { - if (now - Date.parse(run.created_at) > ms_in_day * days_to_expiration) { - runs_to_delete.push([run.id, run.name]); - } - } - } - } - } - - for (const run of runs_to_delete) { - console.log(`Run id ${run[0]} of '${run[1]}' is older than ${days_to_expiration} days. Deleting...`); - try { - await github.actions.deleteWorkflowRun({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: run[0] - }); - } catch (error) { - // ignore errors - } - } diff --git a/README.md b/README.md index 98f3f39..7849ea3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # CZERTAINLY Dependencies -> This repository is part of the commercial open source project CZERTAINLY. You can find more information about the project at [CZERTAINLY](https://github.com/3KeyCompany/CZERTAINLY) repository, including the contribution guide. +> This repository is part of the commercial open source project CZERTAINLY. You can find more information about the project at [CZERTAINLY](https://github.com/CZERTAINLY/CZERTAINLY) repository, including the contribution guide. `Dependencies` provides the basic setting of libraries for the CZERTAINLY platform in case modules or connectors are written in `Java`. There are pre-defined libraries which CZERTAINLY would like to use over the modules and connectors. diff --git a/pom.xml b/pom.xml index db04821..4b9056a 100644 --- a/pom.xml +++ b/pom.xml @@ -12,18 +12,18 @@ com.czertainly dependencies - 1.1.1-SNAPSHOT + 1.2.0 CZERTAINLY-Dependencies pom CZERTAINLY - parent pom for managing libraries - https://github.com/3KeyCompany/CZERTAINLY-Dependencies + https://github.com/CZERTAINLY/CZERTAINLY-Dependencies MIT License - https://github.com/3KeyCompany/CZERTAINLY-Dependencies/blob/develop/LICENSE.md + https://github.com/CZERTAINLY/CZERTAINLY-Dependencies/blob/develop/LICENSE.md @@ -37,9 +37,9 @@ - scm:git:git://github.com:3KeyCompany/CZERTAINLY-Dependencies.git - scm:git:ssh://github.com:3KeyCompany/CZERTAINLY-Dependencies.git - https://github.com/3KeyCompany/CZERTAINLY-Dependencies + scm:git:git://github.com:CZERTAINLY/CZERTAINLY-Dependencies.git + scm:git:ssh://github.com:CZERTAINLY/CZERTAINLY-Dependencies.git + https://github.com/CZERTAINLY/CZERTAINLY-Dependencies @@ -47,7 +47,7 @@ 21 21 0.8.12 - 3KeyCompany_CZERTAINLY-Dependencies + CZERTAINLY_CZERTAINLY-Dependencies 3.3.3 2.17.2 3.9.1 @@ -304,7 +304,7 @@ github GitHub Packages - https://maven.pkg.github.com/3keycompany/czertainly-dependencies + https://maven.pkg.github.com/czertainly/czertainly-dependencies @@ -313,7 +313,7 @@ github - https://maven.pkg.github.com/3keycompany/* + https://maven.pkg.github.com/czertainly/* true