Skip to content

Commit e242801

Browse files
authored
Merge branch 'develop' into renovate/releases-docker.jfrog.io-jfrog-artifactory-oss-7.x
2 parents d8ba596 + f0e2c72 commit e242801

311 files changed

Lines changed: 5080 additions & 2304 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/java:3-17",
3+
"features": {
4+
"ghcr.io/devcontainers/features/java:1": {
5+
"version": "17",
6+
"jdkDistro": "ammzn",
7+
"installMaven": "true",
8+
"installGradle": "false"
9+
}
10+
},
11+
"customizations": {
12+
// Configure properties specific to VS Code.
13+
"vscode": {
14+
// Add the IDs of extensions you want installed when the container is created.
15+
"extensions": [
16+
"streetsidesoftware.code-spell-checker",
17+
"vscjava.vscode-java-pack"
18+
]
19+
}
20+
}
21+
}

.github/dependabot.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "maven"
4-
directory: "/"
5-
target-branch: "develop"
6-
schedule:
7-
interval: "weekly"
8-
open-pull-requests-limit: 50
9-
ignore:
10-
- dependency-name: "com.amazonaws:*"
11-
update-types: ["version-update:semver-patch"]
123
- package-ecosystem: "github-actions"
134
directory: "/"
145
target-branch: "develop"
156
labels:
167
- "housekeeping"
178
schedule:
189
interval: "monthly"
19-
- package-ecosystem: "docker"
20-
directory: "/"
21-
schedule:
22-
interval: "weekly"

.github/renovate.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"branchPrefix": "renovate/",
4+
"gitAuthor": "Renovate Bot <renovate@whitesourcesoftware.com>",
5+
"prHourlyLimit": 10,
6+
"prConcurrentLimit": 20,
7+
"dependencyDashboard": true,
8+
"commitBodyTable": true,
9+
"rebaseWhen": "behind-base-branch",
10+
"schedule": [
11+
"before 8am"
12+
],
13+
"labels": [
14+
"dependencies"
15+
],
16+
"platformAutomerge": true,
17+
"customManagers": [
18+
{
19+
"description": "Process // renovate comments in Java files",
20+
"customType": "regex",
21+
"fileMatch": [
22+
"\\.java$"
23+
],
24+
"matchStrings": [
25+
"//\\s*renovate:\\s*datasource=(?<datasource>[a-zA-Z0-9-]+).*?\\r?\\n\\s*return\\s*\"(?<depName>[^:]+):?(?<currentValue>[\\w.-]*)\""
26+
],
27+
"versioningTemplate": "docker"
28+
},
29+
{
30+
"description": "Process embedded docker images in properties and adoc",
31+
"customType": "regex",
32+
"fileMatch": [
33+
"\\.properties$",
34+
"\\.adoc$"
35+
],
36+
"matchStrings": [
37+
"\\*.+?`embedded\\.\\w+?\\.(?:dockerImage|docker-image)`.*'(?<depName>[^:]+):?(?<currentValue>[\\w.-]*)'"
38+
],
39+
"datasourceTemplate": "docker",
40+
"versioningTemplate": "docker"
41+
},
42+
{
43+
"description": "Process embedded docker images in Spring metadata",
44+
"customType": "regex",
45+
"fileMatch": [
46+
"additional-spring-configuration-metadata\\.json$"
47+
],
48+
"matchStrings": [
49+
"\"embedded\\.\\w+?\\.(?:dockerImage|docker-image)\",(?:.|\\r?\\n)*?\"value\"\\s*:\\s*\"(?<depName>[^:]+):?(?<currentValue>[\\w.-]*)\""
50+
],
51+
"datasourceTemplate": "docker",
52+
"versioningTemplate": "docker"
53+
}
54+
],
55+
"packageRules": [
56+
{
57+
"description": "Apply specific label for all Docker-related updates",
58+
"matchDatasources": [
59+
"docker"
60+
],
61+
"labels": [
62+
"docker-update-images"
63+
]
64+
},
65+
{
66+
"description": "Automerge minor and patch updates universally",
67+
"matchUpdateTypes": [
68+
"minor",
69+
"patch",
70+
"pin",
71+
"digest"
72+
],
73+
"automerge": true
74+
}
75+
]
76+
}

.github/workflows/changelog-release-drafter.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ on:
55
branches:
66
- develop
77
- support/2.3.X
8+
- support/3.0.X
89

910
jobs:
1011
update_release_draft:
1112
runs-on: ubuntu-latest
1213
steps:
13-
- uses: release-drafter/release-drafter@v6
14+
- uses: release-drafter/release-drafter@v7
1415
env:
1516
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414

1515
- name: Run Trivy vulnerability scanner in repo mode
1616
uses: aquasecurity/trivy-action@master
@@ -20,8 +20,9 @@ jobs:
2020
format: 'sarif'
2121
output: 'trivy-results.sarif'
2222
severity: 'CRITICAL'
23+
timeout: 10m
2324

2425
- name: Upload Trivy scan results to GitHub Security tab
25-
uses: github/codeql-action/upload-sarif@v3
26+
uses: github/codeql-action/upload-sarif@v4
2627
with:
2728
sarif_file: 'trivy-results.sarif'

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
pull-requests: write
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/labeler@v5
12+
- uses: actions/labeler@v6
1313
with:
1414
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/maven.yml

Lines changed: 46 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
- support/3.0.X
1717

1818
jobs:
19-
build-jdk8:
19+
build-jdk21:
2020
runs-on: ubuntu-latest
2121
name: Build project
2222
concurrency:
@@ -25,23 +25,61 @@ jobs:
2525
cancel-in-progress: true
2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2929
with:
30-
fetch-depth: 0
30+
fetch-depth: 0 # Required by GIB to calculate Git diffs
31+
3132
- name: Cache Maven packages
32-
uses: actions/cache@v4
33+
uses: actions/cache@v5
3334
with:
3435
path: ~/.m2
3536
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3637
restore-keys: ${{ runner.os }}-m2
38+
3739
- name: Set up JDK
38-
uses: actions/setup-java@v4
40+
uses: actions/setup-java@v5
3941
with:
4042
distribution: 'corretto'
4143
java-version: '21'
44+
45+
- name: Determine GIB Reference
46+
id: gib-base
47+
run: |
48+
if [ "${{ github.event_name }}" == "pull_request" ]; then
49+
# For PRs, compare against the remote target branch
50+
echo "BASE_REF=refs/remotes/origin/${{ github.base_ref }}" >> $GITHUB_ENV
51+
else
52+
# For pushes, compare against the previous commit
53+
echo "BASE_REF=${{ github.event.before }}" >> $GITHUB_ENV
54+
fi
55+
56+
- name: Check for SNAPSHOT dependencies in dependency management
57+
run: |
58+
./mvnw help:effective-pom --batch-mode --no-transfer-progress -q > effective-pom.xml
59+
SNAPSHOTS=$(grep "SNAPSHOT" effective-pom.xml || true)
60+
rm -f effective-pom.xml
61+
if [ -n "$SNAPSHOTS" ]; then
62+
echo "::error::SNAPSHOT versions found in effective POM dependency management:"
63+
echo "$SNAPSHOTS"
64+
echo "Run 'mvn help:effective-pom | grep SNAPSHOT' locally to find them."
65+
exit 1
66+
fi
67+
4268
- name: Build with Maven
43-
run: ./mvnw -version && whoami && umask -S && umask a+rw && umask -S && ./mvnw clean verify -P docker-clean -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.count=3 --no-snapshot-updates --batch-mode --no-transfer-progress
69+
run: |
70+
./mvnw -version && whoami && umask -S && umask a+rw && umask -S && \
71+
./mvnw clean verify \
72+
-P docker-clean \
73+
-Dhttp.keepAlive=false \
74+
-Dmaven.wagon.http.pool=false \
75+
-Dmaven.wagon.http.retryHandler.count=3 \
76+
--no-snapshot-updates \
77+
--batch-mode \
78+
--no-transfer-progress \
79+
-Dgib.referenceBranch=$BASE_REF \
80+
-Dgib.buildDownstream=always
81+
4482
- name: Upload coverage to Codecov
45-
uses: codecov/codecov-action@v5
83+
uses: codecov/codecov-action@v6
4684
env:
47-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
85+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/release-support-stream.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Support Stream Branch Publish to the Maven Central Repository
22

33
on:
4-
workflow_dispatch:
4+
push:
55
branches:
66
- 'support/**'
7+
workflow_dispatch:
78
inputs:
89
version:
910
description: "Version to be released"
@@ -30,18 +31,25 @@ jobs:
3031
publish:
3132
runs-on: ubuntu-latest
3233
steps:
34+
- name: Generate App Token
35+
id: app-token
36+
uses: actions/create-github-app-token@v3
37+
with:
38+
app-id: ${{ secrets.AUTOMATION_APP_ID }}
39+
private-key: ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }}
40+
3341
- name: Checkout
34-
uses: actions/checkout@v4
42+
uses: actions/checkout@v6
3543
with:
3644
ref: ${{github.event.inputs.branch}}
37-
token: ${{ secrets.RELEASE_PERSONAL_ACCESS_TOKEN }}
45+
token: ${{ steps.app-token.outputs.token }}
3846

3947
- name: Set up JDK
40-
uses: actions/setup-java@v4
48+
uses: actions/setup-java@v5
4149
with:
4250
distribution: 'corretto'
4351
java-version: ${{github.event.inputs.java-version}}
44-
server-id: ossrh
52+
server-id: central
4553
server-username: MAVEN_USERNAME
4654
server-password: MAVEN_PASSWORD
4755
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
@@ -54,7 +62,7 @@ jobs:
5462

5563
- name: Publish to the Maven Central Repository
5664
if: ${{ success() }}
57-
run: ./mvnw --batch-mode --no-transfer-progress -Dgib.disable=true -P ossrh -DskipTests deploy
65+
run: ./mvnw --batch-mode --no-transfer-progress -Dgib.disable=true -P central -DskipTests deploy
5866
env:
5967
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
6068
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
@@ -64,6 +72,6 @@ jobs:
6472
if: ${{ success() }}
6573
uses: actions-js/push@v1.5
6674
with:
67-
github_token: ${{ secrets.GITHUB_TOKEN }}
75+
github_token: ${{ steps.app-token.outputs.token }}
6876
message: 'Release ${{github.event.inputs.version}}'
6977
branch: ${{github.event.inputs.branch}}

.github/workflows/release.yml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,48 @@ name: Publish to the Maven Central Repository
33
on:
44
release:
55
types: [ published ]
6+
workflow_dispatch:
7+
inputs:
8+
dryRun:
9+
description: "Dry-Run"
10+
default: false
11+
required: false
12+
type: boolean
13+
logLevel:
14+
description: "Log-Level"
15+
required: false
16+
default: 'debug'
17+
type: choice
18+
options:
19+
- info
20+
- warn
21+
- debug
22+
- error
23+
- fatal
624

725
jobs:
826
publish:
927
runs-on: ubuntu-latest
1028
steps:
29+
- name: Generate GitHub App Token
30+
id: app-token
31+
uses: actions/create-github-app-token@v3
32+
with:
33+
app-id: ${{ secrets.AUTOMATION_APP_ID }}
34+
private-key: ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }}
35+
1136
- name: Checkout
12-
uses: actions/checkout@v4
37+
uses: actions/checkout@v6
1338
with:
1439
ref: ${{github.event.release.target_commitish}}
15-
token: ${{ secrets.RELEASE_PERSONAL_ACCESS_TOKEN }}
40+
token: ${{ steps.app-token.outputs.token }}
1641

1742
- name: Set up JDK
18-
uses: actions/setup-java@v4
43+
uses: actions/setup-java@v5
1944
with:
2045
distribution: 'corretto'
2146
java-version: '21'
22-
server-id: ossrh
47+
server-id: central
2348
server-username: MAVEN_USERNAME
2449
server-password: MAVEN_PASSWORD
2550
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
@@ -32,7 +57,7 @@ jobs:
3257

3358
- name: Publish to the Maven Central Repository
3459
if: ${{ success() }}
35-
run: ./mvnw --batch-mode --no-transfer-progress -Dgib.disable=true -P ossrh -DskipTests deploy
60+
run: ./mvnw --batch-mode --no-transfer-progress -Dgib.disable=true -P central -DskipTests deploy
3661
env:
3762
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3863
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
@@ -42,6 +67,6 @@ jobs:
4267
if: ${{ success() }}
4368
uses: actions-js/push@master
4469
with:
45-
github_token: ${{ secrets.GITHUB_TOKEN }}
70+
github_token: ${{ steps.app-token.outputs.token }}
4671
message: 'Release ${{github.event.release.tag_name}}'
4772
branch: ${{ github.event.release.target_commitish }}

0 commit comments

Comments
 (0)