Skip to content

Commit c5091d6

Browse files
committed
Merge remote-tracking branch 'refs/remotes/apache/2.x' into fix/2.x/throwable-proxy-clean-up
2 parents 8434f99 + 1b544d3 commit c5091d6

File tree

952 files changed

+11335
-7230
lines changed

Some content is hidden

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

952 files changed

+11335
-7230
lines changed

.asf.yaml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#
1717

1818
# `.asf.yaml` is a branch-specific YAML configuration file for Git repositories to control features such as notifications, GitHub settings, etc.
19-
# See its documentation for details: https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features
19+
# See its documentation for details: https://github.com/apache/infrastructure-asfyaml
2020

2121
# Bare minimum `notifications` to
2222
#
@@ -31,12 +31,15 @@ notifications:
3131
pullrequests: [email protected]
3232
pullrequests_bot_dependabot: [email protected]
3333
jira_options: link label worklog
34+
discussions: [email protected]
3435

3536
github:
3637
description: "Apache Log4j is a versatile, feature-rich, efficient logging API and backend for Java."
3738
homepage: https://logging.apache.org/log4j/2.x
3839
features:
3940
issues: true
41+
discussions: true
42+
projects: true
4043
del_branch_on_merge: true
4144
autolink_jira:
4245
- LOG4J2
@@ -60,8 +63,39 @@ github:
6063
merge: false
6164
rebase: false
6265

66+
# Enforce Review-then-Commit
6367
protected_branches:
64-
main:
65-
required_signatures: true
6668
2.x:
69+
# All commits must be signed
70+
required_signatures: true
71+
# All reviews must be addressed before merging
72+
required_conversation_resolution: true
73+
# Require checks to pass before merging
74+
required_status_checks:
75+
checks:
76+
# The GitHub Actions app: 15368
77+
- app_id: 15368
78+
context: "build / build (ubuntu-latest)"
79+
# The GitHub Advanced Security app: 57789
80+
- app_id: 57789
81+
context: "CodeQL"
82+
# At least one positive review must be present
83+
required_pull_request_reviews:
84+
required_approving_review_count: 1
85+
main:
86+
# All commits must be signed
6787
required_signatures: true
88+
# All reviews must be addressed before merging
89+
required_conversation_resolution: true
90+
# Require checks to pass before merging
91+
required_status_checks:
92+
checks:
93+
# The GitHub Actions app: 15368
94+
- app_id: 15368
95+
context: "build / build (ubuntu-latest)"
96+
# The GitHub Advanced Security app: 57789
97+
- app_id: 57789
98+
context: "CodeQL"
99+
# At least one positive review must be present
100+
required_pull_request_reviews:
101+
required_approving_review_count: 1

.cherry_picker.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
team = "apache"
19+
repo = "logging-log4j2"
20+
check_sha= "3da98f7c9de9bf4abb17e10dad678e05ab658a3a"
21+
fix_commit_msg = false
22+
default_branch = "2.x"
23+
require_version_in_branch_name=false
24+
draft_pr = true

.github/FUNDING.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to you under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
##
18+
# This file controls the "Sponsor" button in this repo.
19+
# For details see:
20+
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository
21+
#
22+
# This list includes in the same order, committers of Log4j listed on:
23+
# https://logging.apache.org/support.html#sponsors
24+
github:
25+
- carterkozak
26+
- garydgregory
27+
- jvz
28+
- ppkarwasz
29+
- rgoers
30+
- vy

.github/dependabot.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ updates:
4545

4646
- package-ecosystem: maven
4747
directories:
48-
- "/"
4948
- "/log4j-1.2-api"
5049
- "/log4j-api-test"
5150
- "/log4j-api"
@@ -59,6 +58,7 @@ updates:
5958
- "/log4j-docker"
6059
- "/log4j-fuzz-test"
6160
- "/log4j-iostreams"
61+
- "/log4j-jakarta-jms"
6262
- "/log4j-jakarta-smtp"
6363
- "/log4j-jakarta-web"
6464
- "/log4j-jcl"
@@ -163,7 +163,6 @@ updates:
163163
- package-ecosystem: maven
164164
directories:
165165
- "/log4j-mongodb4"
166-
- "/log4j-slf4j-impl"
167166
open-pull-requests-limit: 10
168167
schedule:
169168
interval: "daily"
@@ -174,9 +173,6 @@ updates:
174173
# MongoDB 4.x should only upgrade to 4.x
175174
- dependency-name: "org.mongodb:*"
176175
versions: [ "[5,)" ]
177-
# SLF4J 1.7.x should only upgrade to 1.7.x and
178-
- dependency-name: "org.slf4j:slf4j-api"
179-
versions: [ "[1,)" ]
180176

181177
- package-ecosystem: github-actions
182178
directory: "/"

.github/generate-email.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ stderr() {
2828

2929
fail_for_invalid_args() {
3030
stderr "Invalid arguments!"
31-
stderr "Expected arguments: <vote|announce> <version> <commitId>"
31+
stderr "Expected arguments: <vote|announce> <version> <commitId> <nexusUrl>"
3232
exit 1
3333
}
3434

3535
# Check arguments
36-
[ $# -ne 3 ] && fail_for_invalid_args
36+
[ $# -ne 4 ] && fail_for_invalid_args
3737

3838
# Constants
3939
PROJECT_NAME="Apache Log4j"
@@ -43,6 +43,7 @@ PROJECT_SITE="https://logging.apache.org/$PROJECT_ID"
4343
PROJECT_STAGING_SITE="${PROJECT_SITE/apache.org/staged.apache.org}"
4444
PROJECT_REPO="https://github.com/apache/logging-log4j2"
4545
COMMIT_ID="$3"
46+
NEXUS_URL="$4"
4647
PROJECT_DIST_URL="https://dist.apache.org/repos/dist/dev/logging/$PROJECT_ID/$PROJECT_VERSION"
4748

4849
# Check release notes file
@@ -71,7 +72,7 @@ Website: $PROJECT_STAGING_SITE/$PROJECT_VERSION/index.html
7172
GitHub: $PROJECT_REPO
7273
Commit: $COMMIT_ID
7374
Distribution: $PROJECT_DIST_URL
74-
Nexus: https://repository.apache.org/content/repositories/orgapachelogging-<FIXME>
75+
Nexus: $NEXUS_URL
7576
Signing key: 0x077e8893a6dcc33dd4a4d5b256e73ba9a0b592d0
7677
Review kit: https://logging.apache.org/logging-parent/release-review-instructions.html
7778

.github/workflows/build.yaml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ jobs:
3030

3131
build:
3232
if: github.actor != 'dependabot[bot]'
33-
uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/11.3.0
33+
uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/12.1.0
3434
secrets:
35-
DV_ACCESS_TOKEN: ${{ startsWith(github.ref_name, 'release/') && '' || secrets.GE_ACCESS_TOKEN }}
35+
DV_ACCESS_TOKEN: ${{ startsWith(github.ref_name, 'release/') && '' || secrets.DEVELOCITY_ACCESS_KEY }}
3636
with:
3737
java-version: |
3838
8
3939
17
4040
site-enabled: true
41-
reproducibility-check-enabled: ${{ startsWith(github.ref_name, 'release/') }}
41+
reproducibility-check-enabled: false
4242
develocity-enabled: ${{ ! startsWith(github.ref_name, 'release/') }}
4343

4444
deploy-snapshot:
4545
needs: build
4646
if: github.repository == 'apache/logging-log4j2' && github.ref_name == '2.x'
47-
uses: apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/11.3.0
47+
uses: apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/12.1.0
4848
# Secrets for deployments
4949
secrets:
5050
NEXUS_USERNAME: ${{ secrets.NEXUS_USER }}
@@ -57,7 +57,7 @@ jobs:
5757
deploy-release:
5858
needs: build
5959
if: github.repository == 'apache/logging-log4j2' && startsWith(github.ref_name, 'release/')
60-
uses: apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/11.3.0
60+
uses: apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/12.1.0
6161
# Secrets for deployments
6262
secrets:
6363
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
@@ -73,3 +73,25 @@ jobs:
7373
8
7474
17
7575
project-id: log4j
76+
77+
verify-reproducibility:
78+
needs: [ deploy-snapshot, deploy-release ]
79+
if: ${{ always() && (needs.deploy-snapshot.result == 'success' || needs.deploy-release.result == 'success') }}
80+
name: "verify-reproducibility (${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }})"
81+
uses: apache/logging-parent/.github/workflows/verify-reproducibility-reusable.yaml@rel/12.1.0
82+
with:
83+
nexus-url: ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.nexus-url || 'https://repository.apache.org/content/groups/snapshots' }}
84+
# Encode the `runs-on` input as JSON array
85+
runs-on: '["ubuntu-latest", "macos-latest", "windows-latest"]'
86+
87+
# Run integration-tests automatically after a snapshot or RC is published
88+
integration-test:
89+
needs: [ deploy-snapshot, deploy-release ]
90+
if: ${{ always() && (needs.deploy-snapshot.result == 'success' || needs.deploy-release.result == 'success') }}
91+
name: "integration-test (${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }})"
92+
uses: apache/logging-log4j-samples/.github/workflows/integration-test.yaml@main
93+
with:
94+
log4j-version: ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }}
95+
log4j-repository-url: ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.nexus-url || needs.deploy-snapshot.outputs.nexus-url }}
96+
# Use the `main` branch of `logging-log4j-samples`
97+
samples-ref: 'refs/heads/main'

.github/workflows/codeql-analysis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ permissions: read-all
3030
jobs:
3131

3232
analyze:
33-
uses: apache/logging-parent/.github/workflows/codeql-analysis-reusable.yaml@rel/11.3.0
33+
uses: apache/logging-parent/.github/workflows/codeql-analysis-reusable.yaml@rel/12.1.0
3434
with:
3535
java-version: |
3636
8

.github/workflows/deploy-site.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
deploy-site-stg:
3535
if: github.repository == 'apache/logging-log4j2' && github.ref_name == '2.x'
36-
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/11.3.0
36+
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/12.1.0
3737
# Secrets for committing the generated site
3838
secrets:
3939
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
@@ -51,7 +51,7 @@ jobs:
5151

5252
deploy-site-pro:
5353
if: github.repository == 'apache/logging-log4j2' && github.ref_name == '2.x-site-pro'
54-
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/11.3.0
54+
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/12.1.0
5555
# Secrets for committing the generated site
5656
secrets:
5757
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
@@ -81,7 +81,7 @@ jobs:
8181
8282
deploy-site-rel:
8383
needs: export-version
84-
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/11.3.0
84+
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/12.1.0
8585
# Secrets for committing the generated site
8686
secrets:
8787
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}

.github/workflows/develocity-publish-build-scans.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ jobs:
3131
steps:
3232

3333
- name: Setup Build Scan link capture
34-
uses: gradle/develocity-actions/maven-setup@9f1bf05334de7eb619731d5466c35a153742311d # 1.2
34+
uses: gradle/develocity-actions/setup-maven@b8d3a572314ffff3b940a2c1b7b384d4983d422d # 1.3
35+
with:
36+
capture-build-scan-links: true
3537

3638
- name: Publish Build Scans
37-
uses: gradle/develocity-actions/maven-publish-build-scan@9f1bf05334de7eb619731d5466c35a153742311d # 1.2
39+
uses: gradle/develocity-actions/maven-publish-build-scan@b8d3a572314ffff3b940a2c1b7b384d4983d422d # 1.3
3840
with:
39-
develocity-url: 'https://ge.apache.org'
40-
develocity-access-key: ${{ secrets.GE_ACCESS_TOKEN }}
41+
develocity-url: 'https://develocity.apache.org'
42+
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

.github/workflows/merge-dependabot.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030

3131
build:
3232
if: github.repository == 'apache/logging-log4j2' && github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]'
33-
uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/11.3.0
33+
uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/12.1.0
3434
secrets:
35-
DV_ACCESS_TOKEN: ${{ secrets.GE_ACCESS_TOKEN }}
35+
DV_ACCESS_TOKEN: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
3636
with:
3737
java-version: |
3838
8
@@ -42,7 +42,7 @@ jobs:
4242

4343
merge-dependabot:
4444
needs: build
45-
uses: apache/logging-parent/.github/workflows/merge-dependabot-reusable.yaml@rel/11.3.0
45+
uses: apache/logging-parent/.github/workflows/merge-dependabot-reusable.yaml@rel/12.1.0
4646
with:
4747
java-version: 17
4848
permissions:

0 commit comments

Comments
 (0)