Skip to content

Commit ae33c2f

Browse files
committed
Merge branch '3.x' into 3.x-jakarta-ee10
2 parents 535a7ba + f7745c5 commit ae33c2f

42 files changed

Lines changed: 632 additions & 152 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.

.github/dependabot.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,13 @@
1616
# under the License.
1717

1818
version: 2
19-
# Add Maven Central explicitly to work around:
20-
# https://github.com/dependabot/dependabot-core/issues/8329
21-
registries:
22-
maven-central:
23-
type: maven-repository
24-
url: https://repo.maven.apache.org/maven2
25-
2619
updates:
2720
# Dependencies for Maven
2821
- package-ecosystem: 'maven'
2922
directory: '/'
3023
schedule:
3124
interval: 'daily'
3225
open-pull-requests-limit: 50
33-
registries:
34-
- maven-central
3526
ignore:
3627
- dependency-name: "jakarta.platform:*"
3728
update-types: [ "version-update:semver-major" ]
@@ -82,8 +73,6 @@ updates:
8273
schedule:
8374
interval: 'daily'
8475
open-pull-requests-limit: 50
85-
registries:
86-
- maven-central
8776
ignore:
8877
- dependency-name: "jakarta.servlet.*:*"
8978
update-types: [ "version-update:semver-major" ]

.github/workflows/codeql.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@ jobs:
6060

6161
steps:
6262
- name: Checkout repository
63-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
63+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6464

6565
- name: Cache local Maven repository
66-
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 #v4.0.2
66+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
6767
with:
6868
path: ~/.m2
6969
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
7070
restore-keys: ${{ runner.os }}-m2
7171

7272
# Initializes the CodeQL tools for scanning.
7373
- name: Initialize CodeQL
74-
uses: github/codeql-action/init@294a9d92911152fe08befb9ec03e240add280cb3 # v3.26.8
74+
uses: github/codeql-action/init@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
7575
with:
7676
languages: ${{ matrix.language }}
7777
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -81,11 +81,9 @@ jobs:
8181
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
8282
# queries: security-extended,security-and-quality
8383

84-
85-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
86-
# If this step fails, then you should remove it and run the build manually (see below)
87-
- name: Autobuild
88-
uses: github/codeql-action/autobuild@294a9d92911152fe08befb9ec03e240add280cb3 # v3.26.8
84+
- run: |
85+
echo "Run, Build Application using script"
86+
./mvnw package -DskipTests -Dmaven.build.cache.enabled=false
8987
9088
# ℹ️ Command-line programs to run using the OS shell.
9189
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -98,6 +96,6 @@ jobs:
9896
# ./location_of_script_within_repo/buildscript.sh
9997

10098
- name: Perform CodeQL Analysis
101-
uses: github/codeql-action/analyze@294a9d92911152fe08befb9ec03e240add280cb3 # v3.26.8
99+
uses: github/codeql-action/analyze@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
102100
with:
103101
category: "/language:${{matrix.language}}"

.github/workflows/maven.yml

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

3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
36+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3737

3838
- name: Set up JDK
39-
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
39+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
4040
with:
4141
java-version: 17
4242
distribution: temurin
4343

4444
- name: License Check
45-
run: mvn apache-rat:check "-Drat.consoleOutput"
45+
run: ./mvnw apache-rat:check "-Drat.consoleOutput"
4646

4747
- name: Build with Maven
4848
run: >-
49-
mvn verify --show-version --errors --batch-mode --no-transfer-progress -Pdocs
49+
./mvnw verify --show-version --errors --batch-mode --no-transfer-progress -Pdocs
5050
-Dgh_user=${{ github.actor }} -Dgh_token=${{ secrets.GITHUB_TOKEN }}
5151
5252
build-all:
@@ -55,7 +55,7 @@ jobs:
5555
strategy:
5656
matrix:
5757
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
58-
jdk: [ 11, 17, 21, 22 ]
58+
jdk: [ 11, 17, 21, 23 ]
5959
dist: [ 'temurin', 'adopt-openj9', 'zulu' ]
6060
exclude:
6161
# was already built
@@ -71,37 +71,37 @@ jobs:
7171
# no OpenJ9 21
7272
- dist: adopt-openj9
7373
jdk: 21
74-
# no OpenJ9 22
74+
# no OpenJ9 23
7575
- dist: adopt-openj9
76-
jdk: 22
76+
jdk: 23
7777
fail-fast: false
7878

7979
runs-on: ${{ matrix.os }}
8080

8181
steps:
8282
- name: Checkout
83-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
83+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8484

8585
- name: Set up JDK
86-
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
86+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
8787
with:
8888
java-version: ${{ matrix.jdk }}
8989
distribution: ${{ matrix.dist }}
9090

9191
- name: Build with Maven (Linux)
9292
if: matrix.os == 'ubuntu-latest' && matrix.jdk <= 17
9393
run: >-
94-
mvn verify --show-version --errors --batch-mode --no-transfer-progress -Pdocs
94+
./mvnw verify --show-version --errors --batch-mode --no-transfer-progress -Pdocs
9595
-Dgh_user=${{ github.actor }} -Dgh_token=${{ secrets.GITHUB_TOKEN }}
9696
9797
- name: Build with Maven (non-Linux or JDK > 17)
9898
if: matrix.os != 'ubuntu-latest' || matrix.jdk > 17
9999
run: >-
100-
mvn verify --show-version --errors --batch-mode --no-transfer-progress -Pdocs
100+
./mvnw verify --show-version --errors --batch-mode --no-transfer-progress -Pdocs
101101
-Pskip_jakarta_ee_tests
102102
103103
- name: Archive test run logs
104-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
104+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
105105
if: always()
106106
with:
107107
name: test-logs-${{ matrix.os }}-${{ matrix.jdk }}-${{ matrix.dist }}

.github/workflows/scorecards.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242

4343
steps:
4444
- name: "Checkout code"
45-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag=v3.0.0
45+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v3.0.0
4646
with:
4747
persist-credentials: false
4848

4949
- name: "Run analysis"
50-
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 #tag=2.4.0
50+
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 #tag=2.4.1
5151
with:
5252
results_file: results.sarif
5353
results_format: sarif
@@ -66,14 +66,14 @@ jobs:
6666
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6767
# format to the repository Actions tab.
6868
- name: "Upload artifact"
69-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # tag=v4.4.0
69+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # tag=v4.6.2
7070
with:
7171
name: SARIF file
7272
path: results.sarif
7373
retention-days: 5
7474

7575
# Upload the results to GitHub's code scanning dashboard.
7676
- name: "Upload to code-scanning"
77-
uses: github/codeql-action/upload-sarif@294a9d92911152fe08befb9ec03e240add280cb3 #tag=v2
77+
uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 #tag=v2
7878
with:
7979
sarif_file: results.sarif

.github/workflows/stale.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ jobs:
3838
with:
3939
# default is 60
4040
days-before-stale: 90
41+
exempt-issue-labels: valid
42+
exempt-pr-labels: valid

.jenkins.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pipeline {
3636
axis {
3737
// https://cwiki.apache.org/confluence/display/INFRA/JDK+Installation+Matrix
3838
name 'MATRIX_JDK'
39-
values 'jdk_11_latest', 'jdk_17_latest', 'jdk_21_latest', 'jdk_22_latest'
39+
values 'jdk_11_latest', 'jdk_17_latest', 'jdk_21_latest', 'jdk_23_latest'
4040
}
4141
// Additional axes, like OS and maven version can be configured here.
4242
}
@@ -86,14 +86,14 @@ pipeline {
8686
stage('License check') {
8787
steps {
8888
echo 'License check'
89-
sh 'mvn --batch-mode -Drat.consoleOutput=true apache-rat:check'
89+
sh './mvnw --batch-mode -Drat.consoleOutput=true apache-rat:check'
9090
}
9191
}
9292

9393
stage('Build') {
9494
steps {
9595
echo 'Building'
96-
sh 'mvn clean verify --show-version --errors --batch-mode --no-transfer-progress -Pdocs \
96+
sh './mvnw clean verify --show-version --errors --batch-mode --no-transfer-progress -Pdocs \
9797
-Dmaven.test.failure.ignore=true -Pskip_jakarta_ee_tests'
9898
}
9999
post {
@@ -116,7 +116,7 @@ pipeline {
116116
}
117117
steps {
118118
echo 'Deploying'
119-
sh 'mvn --batch-mode clean deploy -Pdocs -DskipTests -DskipITs'
119+
sh './mvnw --batch-mode clean deploy -Pdocs -DskipTests -DskipITs'
120120
}
121121
}
122122

.jenkins_maven_args

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-Dmaven.compiler.release=11
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
wrapperVersion=3.3.2
18+
distributionType=only-script
19+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Maven Central](https://img.shields.io/maven-central/v/org.apache.shiro/shiro-core)](https://central.sonatype.com/artifact/org.apache.shiro/shiro-core/)
44
[![Build Status](https://ci-builds.apache.org/buildStatus/icon?job=Shiro%2FShiro-all%2Fmain)](https://ci-builds.apache.org/job/Shiro/job/Shiro-all/job/main/)
5-
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/apache/shiro/badge)](https://api.securityscorecards.dev/projects/github.com/apache/shiro)
5+
[![OpenSSF Scorecard](https://img.shields.io/ossf-scorecard/github.com/apache/shiro?style=plastic&label=openssf%20scorecard)](https://deps.dev/project/github/apache%2Fshiro)
66
[![Reproducible Builds](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/jvm-repo-rebuild/reproducible-central/master/content/org/apache/shiro/badge.json)](https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/apache/shiro/README.md)
77

88
Apache Shiro

core/src/main/java/org/apache/shiro/authc/credential/CredentialsMatcher.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
*
3434
* @see SimpleCredentialsMatcher
3535
* @see AllowAllCredentialsMatcher
36-
* @see Md5CredentialsMatcher
37-
* @see Sha1CredentialsMatcher
3836
* @since 0.1
3937
*/
4038
public interface CredentialsMatcher {

0 commit comments

Comments
 (0)