Skip to content

Commit 195a926

Browse files
committed
Upgrade logging-parent to version 11.0.0 and migrate to Antora (apache/logging-log4j2#2443)
1 parent b5e3d8c commit 195a926

Some content is hidden

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

48 files changed

+497
-595
lines changed

.asf.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@
1717

1818
# `.asf.yaml` documentation: https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features
1919

20-
notifications:
21-
# GitHub already provides notifications for PRs and issues.
22-
# Please don't duplicate that noise here!
23-
commits: commits@logging.apache.org
24-
issues: notifications@logging.apache.org
25-
pullrequests: notifications@logging.apache.org
26-
pullrequests_bot_dependabot: robots@logging.apache.org
27-
2820
github:
2921

3022
description: Swing-based client for remotely editing the Log4j configuration and remotely monitoring `StatusLogger` output

.github/dependabot.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717

1818
version: 2
1919

20-
# Add Maven Central explicitly to work around:
21-
# https://github.com/dependabot/dependabot-core/issues/8329
20+
# Fix the Maven Central to the ASF repository to work around: https://github.com/dependabot/dependabot-core/issues/8329
2221
registries:
2322
maven-central:
2423
type: maven-repository
@@ -38,3 +37,8 @@ updates:
3837
directory: "/"
3938
schedule:
4039
interval: weekly
40+
41+
- package-ecosystem: npm
42+
directory: "/"
43+
schedule:
44+
interval: daily

.github/generate-email.sh

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
# limitations under the License.
1717
#
1818

19-
# Enable strict mode
20-
set -euo pipefail
21-
IFS=$'\n\t'
22-
2319
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
2420

2521
stderr() {
@@ -45,7 +41,7 @@ PROJECT_VERSION="$2"
4541
COMMIT_ID="$3"
4642

4743
# Check release notes file
48-
RELEASE_NOTES_FILE="$SCRIPT_DIR/../src/site/_release-notes/_$PROJECT_VERSION.adoc"
44+
RELEASE_NOTES_FILE="$SCRIPT_DIR/../target/generated-site/antora/modules/ROOT/pages/_release-notes/$PROJECT_VERSION.adoc"
4945
[ -f "$RELEASE_NOTES_FILE" ] || {
5046
stderr "Couldn't find release notes file: $RELEASE_NOTES_FILE"
5147
exit 1
@@ -69,11 +65,11 @@ case $1 in
6965
vote)
7066
cat <<EOF
7167
To: dev@logging.apache.org
72-
Title: [VOTE] Release $PROJECT_NAME $PROJECT_VERSION
68+
Title: [VOTE] Release $PROJECT_NAME \`$PROJECT_VERSION\`
7369
74-
This is a vote to release the $PROJECT_NAME $PROJECT_VERSION.
70+
This is a vote to release the $PROJECT_NAME \`$PROJECT_VERSION\`.
7571
76-
Website: $PROJECT_STAGING_SITE
72+
Website: $PROJECT_STAGING_SITE-$PROJECT_VERSION
7773
GitHub: $PROJECT_REPO
7874
Commit: $COMMIT_ID
7975
Distribution: $PROJECT_DIST_DIR
@@ -91,32 +87,31 @@ everyone to test the release, but only the Logging Services PMC
9187
votes are officially counted. At least 3 +1 votes and more
9288
positive than negative votes are required.
9389
94-
=== Review kit
90+
== Review kit
9591
9692
The minimum set of steps needed to review the uploaded distribution
9793
files in the Subversion repository can be summarized as follows:
9894
9995
$(dump_review_kit)
10096
101-
=== Release notes
102-
103-
$(dump_release_notes)
97+
== Release Notes
10498
EOF
99+
dump_release_notes
105100
;;
106101

107102
announce)
108103
cat <<EOF
109104
To: log4j-user@logging.apache.org, dev@logging.apache.org
110-
Title: [ANNOUNCE] $PROJECT_NAME $PROJECT_VERSION released
105+
Title: [ANNOUNCE] $PROJECT_NAME \`$PROJECT_VERSION\` released
111106
112-
${PROJECT_NAME}[1] team is pleased to announce the $PROJECT_VERSION
107+
${PROJECT_NAME} team is pleased to announce the \`$PROJECT_VERSION\`
113108
release. This project provides a Swing-based client for remotely
114109
editing the Log4j configuration and remotely monitoring \`StatusLogger\`
115110
output. It can be run as a standalone application or as a JConsole plugin.
116111
117112
[1] $PROJECT_SITE
118113
119-
=== Release Notes
114+
== Release Notes
120115
EOF
121116
dump_release_notes
122117
;;

.github/workflows/build.yaml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,43 +32,38 @@ on:
3232
- "**.md"
3333
- "**.txt"
3434

35-
# If the branch is 'main' run once per commit.
36-
# If the branch is 'release/*' allow only one concurrent run.
37-
concurrency:
38-
group: ${{ github.ref_name == 'main' && github.ref || github.ref_name }}
39-
cancel-in-progress: true
40-
4135
permissions: read-all
4236

4337
jobs:
4438

4539
build:
4640
if: github.actor != 'dependabot[bot]'
47-
uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/10.6.0
41+
uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/11.0.0
42+
with:
43+
site-enabled: true
4844

4945
deploy-snapshot:
5046
needs: build
5147
if: github.repository == 'apache/logging-log4j-jmx-gui' && github.ref == 'refs/heads/main'
52-
uses: apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/10.6.0
48+
uses: apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/11.0.0
5349
# Secrets for deployments
5450
secrets:
55-
NEXUS_USER: ${{ secrets.NEXUS_USER }}
56-
NEXUS_PW: ${{ secrets.NEXUS_PW }}
51+
NEXUS_USERNAME: ${{ secrets.NEXUS_USER }}
52+
NEXUS_PASSWORD: ${{ secrets.NEXUS_PW }}
5753

5854
deploy-release:
5955
needs: build
6056
if: github.repository == 'apache/logging-log4j-jmx-gui' && startsWith(github.ref_name, 'release/')
61-
uses: apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/10.6.0
57+
uses: apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/11.0.0
6258
# Secrets for deployments
6359
secrets:
6460
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
65-
LOGGING_STAGE_DEPLOYER_USER: ${{ secrets.LOGGING_STAGE_DEPLOYER_USER }}
66-
LOGGING_STAGE_DEPLOYER_PW: ${{ secrets.LOGGING_STAGE_DEPLOYER_PW }}
61+
NEXUS_USERNAME: ${{ secrets.LOGGING_STAGE_DEPLOYER_USER }}
62+
NEXUS_PASSWORD: ${{ secrets.LOGGING_STAGE_DEPLOYER_PW }}
6763
SVN_USERNAME: ${{ secrets.LOGGING_SVN_DEV_USERNAME }}
6864
SVN_PASSWORD: ${{ secrets.LOGGING_SVN_DEV_PASSWORD }}
6965
# Write permissions to allow the Maven `revision` property update, changelog release, etc.
7066
permissions:
7167
contents: write
7268
with:
7369
project-id: log4j-jmx-gui
74-
site-enabled: true

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/deploy-site.yaml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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+
name: deploy-site
19+
20+
on:
21+
push:
22+
branches:
23+
- "main"
24+
- "main-site-pro"
25+
- "release/*"
26+
paths-ignore:
27+
- "**.md"
28+
- "**.txt"
29+
30+
permissions: read-all
31+
32+
jobs:
33+
34+
deploy-site-stg:
35+
if: github.repository == 'apache/logging-log4j-jmx-gui' && github.ref_name == 'main'
36+
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/11.0.0
37+
# Secrets for committing the generated site
38+
secrets:
39+
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
40+
# Write permissions for committing the generated site
41+
permissions:
42+
contents: write
43+
with:
44+
asf-yaml-content: |
45+
staging:
46+
profile: ~
47+
whoami: ${{ github.ref_name }}-site-stg-out
48+
subdir: content/log4j/jmx-gui
49+
target-branch: ${{ github.ref_name }}-site-stg-out
50+
51+
deploy-site-pro:
52+
if: github.repository == 'apache/logging-log4j-jmx-gui' && github.ref_name == 'main-site-pro'
53+
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/11.0.0
54+
# Secrets for committing the generated site
55+
secrets:
56+
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
57+
# Write permissions for committing the generated site
58+
permissions:
59+
contents: write
60+
with:
61+
asf-yaml-content: |
62+
publish:
63+
profile: ~
64+
whoami: ${{ github.ref_name }}-out
65+
subdir: content/log4j/jmx-gui
66+
target-branch: ${{ github.ref_name }}-out
67+
68+
export-version:
69+
if: github.repository == 'apache/logging-log4j-jmx-gui' && startsWith(github.ref_name, 'release/')
70+
runs-on: ubuntu-latest
71+
outputs:
72+
version: ${{ steps.export-version.outputs.version }}
73+
steps:
74+
- name: Export version
75+
id: export-version
76+
run: |
77+
version=$(echo "${{ github.ref_name }}" | sed 's/^release\///')
78+
echo "version=$version" >> "$GITHUB_OUTPUT"
79+
80+
deploy-site-rel:
81+
needs: export-version
82+
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/11.0.0
83+
# Secrets for committing the generated site
84+
secrets:
85+
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
86+
# Write permissions for committing the generated site
87+
permissions:
88+
contents: write
89+
with:
90+
asf-yaml-content: |
91+
staging:
92+
profile: ~
93+
whoami: ${{ github.ref_name }}-site-stg-out
94+
subdir: content/log4j/jmx-gui-${{ needs.export-version.outputs.version }}
95+
target-branch: ${{ github.ref_name }}-site-stg-out

.github/workflows/merge-dependabot.yaml

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

3131
build:
3232
if: github.repository == 'apache/logging-log4j-jmx-gui' && github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]'
33-
uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/10.6.0
33+
uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/11.0.0
3434

3535
merge-dependabot:
3636
needs: build
37-
uses: apache/logging-parent/.github/workflows/merge-dependabot-reusable.yaml@rel/10.6.0
37+
uses: apache/logging-parent/.github/workflows/merge-dependabot-reusable.yaml@rel/11.0.0
3838
permissions:
3939
contents: write # to push changelog commits
4040
pull-requests: write # to close the PR

.github/workflows/scorecards-analysis.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ target/
2525
.project
2626
.classpath
2727
.settings/
28+
# Node
29+
node
30+
node_modules
31+
package-lock.json

0 commit comments

Comments
 (0)