diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 41d4b74..c088b15 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -28,8 +28,10 @@ updates: - package-ecosystem: maven directory: "/" schedule: - interval: daily - open-pull-requests-limit: 10 + interval: monthly + groups: + dependencies: + patterns: [ "*" ] registries: - maven-central ignore: @@ -48,9 +50,15 @@ updates: - package-ecosystem: github-actions directory: "/" schedule: - interval: weekly + interval: monthly + groups: + dependencies: + patterns: [ "*" ] - package-ecosystem: npm directory: "/" schedule: - interval: daily + interval: monthly + groups: + dependencies: + patterns: [ "*" ] diff --git a/.github/generate-email.sh b/.github/generate-email.sh index a2bf307..40f9321 100755 --- a/.github/generate-email.sh +++ b/.github/generate-email.sh @@ -28,12 +28,12 @@ stderr() { fail_for_invalid_args() { stderr "Invalid arguments!" - stderr "Expected arguments: " + stderr "Expected arguments: " exit 1 } # Check arguments -[ $# -ne 3 ] && fail_for_invalid_args +[ $# -ne 4 ] && fail_for_invalid_args # Constants PROJECT_NAME="Apache Log4j Scala" @@ -43,6 +43,7 @@ PROJECT_STAGING_SITE="${PROJECT_SITE/apache.org/staged.apache.org}" PROJECT_REPO="https://github.com/apache/logging-log4j-scala" PROJECT_VERSION="$2" COMMIT_ID="$3" +NEXUS_URL="$4" PROJECT_DIST_URL="https://dist.apache.org/repos/dist/dev/logging/$PROJECT_ID/$PROJECT_VERSION" # Check release notes file @@ -54,8 +55,8 @@ RELEASE_NOTES_FILE="$SCRIPT_DIR/../target/generated-site/antora/modules/ROOT/pag dump_release_notes() { awk "f{print} /^Release date::/{f=1}" "$RELEASE_NOTES_FILE" \ - | sed -r -e 's|'$PROJECT_REPO'/(issues|pull)/[0-9]+\[([0-9]+)\]|#\2|g - s|https://github.com/([^/]+)/([^/]+)/(pull|issues)/([0-9]+)\[(\1/\2#\4)\]|\5|g' + | sed -r -e 's!'$PROJECT_REPO'/(issues|pull)/[0-9]+\[([0-9]+)\]!#\2!g + s!https://github.com/([^/]+)/([^/]+)/(pull|issues)/([0-9]+)\[(\1/\2#\4)\]!\5!g' } case $1 in @@ -71,7 +72,7 @@ Website: $PROJECT_STAGING_SITE-$PROJECT_VERSION GitHub: $PROJECT_REPO Commit: $COMMIT_ID Distribution: $PROJECT_DIST_URL -Nexus: https://repository.apache.org/content/repositories/orgapachelogging- +Nexus: $NEXUS_URL Signing key: 0x077e8893a6dcc33dd4a4d5b256e73ba9a0b592d0 Review kit: https://s.apache.org/logging-parent-release-review-kit diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 10a2ae5..20749c1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,23 +22,14 @@ on: branches: - "main" - "release/*" - paths-ignore: - - "**.adoc" - - "**.md" - - "**.txt" pull_request: - paths-ignore: - - "**.adoc" - - "**.md" - - "**.txt" permissions: read-all jobs: build: - if: github.actor != 'dependabot[bot]' - uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/11.3.0 + uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/12.1.1 with: java-version: | 8 @@ -48,7 +39,7 @@ jobs: deploy-snapshot: needs: build if: github.repository == 'apache/logging-log4j-scala' && github.ref_name == 'main' - uses: apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/12.0.0 + uses: apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/12.1.1 # Secrets for deployments secrets: NEXUS_USERNAME: ${{ secrets.NEXUS_USER }} @@ -61,7 +52,7 @@ jobs: deploy-release: needs: build if: github.repository == 'apache/logging-log4j-scala' && startsWith(github.ref_name, 'release/') - uses: apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/12.0.0 + uses: apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/12.1.1 # Secrets for deployments secrets: GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }} diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml index 4db1835..74d92f5 100644 --- a/.github/workflows/codeql-analysis.yaml +++ b/.github/workflows/codeql-analysis.yaml @@ -31,7 +31,7 @@ permissions: read-all jobs: analyze: - uses: apache/logging-parent/.github/workflows/codeql-analysis-reusable.yaml@rel/11.3.0 + uses: apache/logging-parent/.github/workflows/codeql-analysis-reusable.yaml@rel/12.1.1 with: java-version: | 8 diff --git a/.github/workflows/deploy-site.yaml b/.github/workflows/deploy-site.yaml index 1c343a2..5350555 100644 --- a/.github/workflows/deploy-site.yaml +++ b/.github/workflows/deploy-site.yaml @@ -33,7 +33,7 @@ jobs: deploy-site-stg: if: github.repository == 'apache/logging-log4j-scala' && github.ref_name == 'main' - uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/11.3.0 + uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/12.1.1 # Secrets for committing the generated site secrets: GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }} @@ -50,7 +50,7 @@ jobs: deploy-site-pro: if: github.repository == 'apache/logging-log4j-scala' && github.ref_name == 'main-site-pro' - uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/11.3.0 + uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/12.1.1 # Secrets for committing the generated site secrets: GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }} @@ -79,7 +79,7 @@ jobs: deploy-site-rel: needs: export-version - uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/11.3.0 + uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/12.1.1 # Secrets for committing the generated site secrets: GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }} diff --git a/.github/workflows/merge-dependabot.yaml b/.github/workflows/merge-dependabot.yaml deleted file mode 100644 index d33dab1..0000000 --- a/.github/workflows/merge-dependabot.yaml +++ /dev/null @@ -1,50 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to you under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -name: merge-dependabot - -on: - pull_request_target: - paths-ignore: - - "**.adoc" - - "**.md" - - "**.txt" - -permissions: read-all - -jobs: - - build: - if: github.repository == 'apache/logging-log4j-scala' && github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]' - uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/11.3.0 - with: - java-version: | - 8 - 17 - - merge-dependabot: - needs: build - uses: apache/logging-parent/.github/workflows/merge-dependabot-reusable.yaml@rel/11.3.0 - permissions: - contents: write # to push changelog commits - pull-requests: write # to close the PR - secrets: - GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }} # to sign commits - with: - java-version: | - 8 - 17 diff --git a/.mvn/jvm.config b/.mvn/jvm.config index 45a0340..0d228df 100644 --- a/.mvn/jvm.config +++ b/.mvn/jvm.config @@ -11,3 +11,4 @@ --add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED +-Dfile.encoding=UTF-8 diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index 2e0a1a3..59a8bf1 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -14,9 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -distributionSha512Sum=8beac8d11ef208f1e2a8df0682b9448a9a363d2ad13ca74af43705549e72e74c9378823bf689287801cbbfc2f6ea9596201d19ccacfdfb682ee8a2ff4c4418ba -distributionType=script -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip -wrapperSha256Sum=3d8f20ce6103913be8b52aef6d994e0c54705fb527324ceb9b835b338739c7a8 -wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar -wrapperVersion=3.3.2 +distributionSha256Sum=305773a68d6ddfd413df58c82b3f8050e89778e777f3a745c8e5b8cbea4018ef +distributionType=only-script +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip +wrapperVersion=3.3.4 diff --git a/antora-playbook.yaml b/antora-playbook.yaml index 8779d10..3e01488 100644 --- a/antora-playbook.yaml +++ b/antora-playbook.yaml @@ -34,6 +34,10 @@ runtime: failure_level: warn asciidoc: + attributes: + tabs-sync-option: true + # Force Kroki to download images at build time + kroki-fetch-diagram: true extensions: - "@asciidoctor/tabs" diff --git a/log4j-api-scala_2.12/pom.xml b/log4j-api-scala_2.12/pom.xml index 2abe786..7e3e6f5 100644 --- a/log4j-api-scala_2.12/pom.xml +++ b/log4j-api-scala_2.12/pom.xml @@ -30,7 +30,7 @@ 2.12 - ${scala.version.group}.19 + ${scala.version.group}.21 diff --git a/log4j-api-scala_2.13/pom.xml b/log4j-api-scala_2.13/pom.xml index 8c67977..3be2ed4 100644 --- a/log4j-api-scala_2.13/pom.xml +++ b/log4j-api-scala_2.13/pom.xml @@ -30,7 +30,7 @@ 2.13 - ${scala.version.group}.13 + ${scala.version.group}.18 diff --git a/log4j-api-scala_3/pom.xml b/log4j-api-scala_3/pom.xml index b761699..4b1fb3a 100644 --- a/log4j-api-scala_3/pom.xml +++ b/log4j-api-scala_3/pom.xml @@ -30,7 +30,7 @@ 3 - ${scala.version.group}.3.3 + ${scala.version.group}.7.4 diff --git a/pom.xml b/pom.xml index 3241e69..fd95480 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ org.apache.logging logging-parent - 11.3.0 + 12.1.1 @@ -159,17 +159,22 @@ true + 7.2.0 4.13.2 - 2.25.2 + 2.25.3 4.11.0 - 3.2.10 - 3.2.10.0 + + 2.0.0 + 1.1.2 + 3.2.19 + 3.2.17.0 + 3.2.10.0 3.2.0 2.30.0 - 4.9.2 + 4.9.8 @@ -217,13 +222,13 @@ org.scalatestplus junit-4-13_${scala.version.group} - ${scalatestplus.version} + ${scalatestplus-junit4.version} org.scalatestplus mockito-3-12_${scala.version.group} - ${scalatestplus.version} + ${scalatestplus-mockito.version} @@ -231,9 +236,24 @@ + + biz.aQute.bnd + biz.aQute.bnd.annotation + ${bnd.annotation.version} + provided + + + + org.osgi + org.osgi.annotation.bundle + ${osgi.annotation.bundle.version} + provided + + org.osgi - osgi.annotation + org.osgi.annotation.versioning + ${osgi.annotation.versioning.version} provided diff --git a/src/changelog/.13.x.x/update_apache_logging_parent_github_workflows_deploy_release_reusable_yaml_rel_11_3_0.xml b/src/changelog/.13.x.x/update_apache_logging_parent_github_workflows_deploy_release_reusable_yaml_rel_11_3_0.xml deleted file mode 100644 index 9892779..0000000 --- a/src/changelog/.13.x.x/update_apache_logging_parent_github_workflows_deploy_release_reusable_yaml_rel_11_3_0.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - Update `apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/11.3.0` to version `12.0.0` - diff --git a/src/changelog/.13.x.x/update_apache_logging_parent_github_workflows_deploy_snapshot_reusable_yaml_rel_11_3_0.xml b/src/changelog/.13.x.x/update_apache_logging_parent_github_workflows_deploy_snapshot_reusable_yaml_rel_11_3_0.xml deleted file mode 100644 index 95d4a05..0000000 --- a/src/changelog/.13.x.x/update_apache_logging_parent_github_workflows_deploy_snapshot_reusable_yaml_rel_11_3_0.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - Update `apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/11.3.0` to version `12.0.0` - diff --git a/src/changelog/.13.x.x/update_org_apache_logging_logging_parent.xml b/src/changelog/.13.x.x/update_org_apache_logging_logging_parent.xml index d9060e2..424cb0d 100644 --- a/src/changelog/.13.x.x/update_org_apache_logging_logging_parent.xml +++ b/src/changelog/.13.x.x/update_org_apache_logging_logging_parent.xml @@ -3,6 +3,6 @@ xmlns="https://logging.apache.org/xml/ns" xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd" type="updated"> - - Update `org.apache.logging:logging-parent` to version `11.3.0` + + Update `org.apache.logging:logging-parent` to version `12.1.1` diff --git a/src/changelog/.13.x.x/update_org_apache_maven_plugins_maven_toolchains_plugin.xml b/src/changelog/.13.x.x/update_org_apache_maven_plugins_maven_toolchains_plugin.xml deleted file mode 100644 index 6a9b966..0000000 --- a/src/changelog/.13.x.x/update_org_apache_maven_plugins_maven_toolchains_plugin.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - Update `org.apache.maven.plugins:maven-toolchains-plugin` to version `3.2.0` - diff --git a/src/changelog/.13.x.x/update_apache_logging_parent.xml b/src/changelog/.13.x.x/update_scala_2_12.xml similarity index 63% rename from src/changelog/.13.x.x/update_apache_logging_parent.xml rename to src/changelog/.13.x.x/update_scala_2_12.xml index 17e0784..24ff321 100644 --- a/src/changelog/.13.x.x/update_apache_logging_parent.xml +++ b/src/changelog/.13.x.x/update_scala_2_12.xml @@ -3,6 +3,6 @@ xmlns="https://logging.apache.org/xml/ns" xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd" type="updated"> - - Update `apache/logging-parent` to version `` + + Update Scala `2.12` baseline to `2.12.21` diff --git a/src/changelog/.13.x.x/update_org_scala_lang_scala3_library_3.xml b/src/changelog/.13.x.x/update_scala_2_13.xml similarity index 61% rename from src/changelog/.13.x.x/update_org_scala_lang_scala3_library_3.xml rename to src/changelog/.13.x.x/update_scala_2_13.xml index 29cdffa..db4c367 100644 --- a/src/changelog/.13.x.x/update_org_scala_lang_scala3_library_3.xml +++ b/src/changelog/.13.x.x/update_scala_2_13.xml @@ -3,6 +3,6 @@ xmlns="https://logging.apache.org/xml/ns" xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd" type="updated"> - - Update `org.scala-lang:scala3-library_3` to version `3.3.3` + + Update Scala `2.13` baseline to `2.13.18` diff --git a/src/changelog/.13.x.x/update_net_alchim31_maven_scala_maven_plugin.xml b/src/changelog/.13.x.x/update_scala_3.xml similarity index 60% rename from src/changelog/.13.x.x/update_net_alchim31_maven_scala_maven_plugin.xml rename to src/changelog/.13.x.x/update_scala_3.xml index a6cc8bd..27106af 100644 --- a/src/changelog/.13.x.x/update_net_alchim31_maven_scala_maven_plugin.xml +++ b/src/changelog/.13.x.x/update_scala_3.xml @@ -3,6 +3,6 @@ xmlns="https://logging.apache.org/xml/ns" xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd" type="updated"> - - Update `net.alchim31.maven:scala-maven-plugin` to version `4.9.2` + + Update Scala `3` baseline to `3.7.4`