Skip to content

Commit 56ed9b7

Browse files
committed
Merge branch 'master' into r2dbc-support
# Conflicts: # src/main/resources/org/mybatis/dynamic/sql/util/messages.properties
2 parents 13d90ea + a7cfd83 commit 56ed9b7

File tree

701 files changed

+13805
-8040
lines changed

Some content is hidden

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

701 files changed

+13805
-8040
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,28 @@ name: Java CI
22

33
on: [workflow_dispatch, push, pull_request]
44

5+
permissions: read-all
6+
57
jobs:
68
test:
79
runs-on: ${{ matrix.os }}
810
strategy:
911
matrix:
12+
cache: [maven]
13+
distribution: [temurin]
14+
java: [17, 21, 24, 25-ea]
1015
os: [ubuntu-latest]
11-
java: [17, 21, 22-ea]
12-
distribution: ['temurin']
1316
fail-fast: false
1417
max-parallel: 4
1518
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
1619

1720
steps:
18-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
1922
- name: Set up JDK ${{ matrix.java }} ${{ matrix.distribution }}
20-
uses: actions/setup-java@v4
23+
uses: actions/setup-java@v5
2124
with:
2225
java-version: ${{ matrix.java }}
2326
distribution: ${{ matrix.distribution }}
27+
cache: ${{ matrix.cache }}
2428
- name: Test with Maven
2529
run: ./mvnw test -B -V --no-transfer-progress -D"license.skip=true"

.github/workflows/codeql.yml

Lines changed: 26 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,49 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL"
132

143
on:
154
push:
16-
branches: [ "master" ]
5+
branches: [ master ]
176
pull_request:
18-
branches: [ "master" ]
7+
branches: [ master ]
198
schedule:
209
- cron: '26 13 * * 4'
2110

2211
jobs:
2312
analyze:
2413
name: Analyze
25-
# Runner size impacts CodeQL analysis time. To learn more, please see:
26-
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27-
# - https://gh.io/supported-runners-and-hardware-resources
28-
# - https://gh.io/using-larger-runners
29-
# Consider using larger runners for possible analysis time improvements.
3014
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
3115
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
3216
permissions:
33-
# required for all workflows
34-
security-events: write
35-
36-
# only required for workflows in private repositories
3717
actions: read
3818
contents: read
19+
security-events: write
3920

4021
strategy:
4122
fail-fast: false
4223
matrix:
4324
language: [ 'java-kotlin' ]
44-
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
45-
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
46-
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
47-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4825

4926
steps:
50-
- name: Checkout repository
51-
uses: actions/checkout@v4
52-
53-
# Initializes the CodeQL tools for scanning.
54-
- name: Initialize CodeQL
55-
uses: github/codeql-action/init@v3
56-
with:
57-
languages: ${{ matrix.language }}
58-
# If you wish to specify custom queries, you can do so here or in a config file.
59-
# By default, queries listed here will override any specified in a config file.
60-
# Prefix the list here with "+" to use these queries and those in the config file.
61-
62-
# For more 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
63-
# queries: security-extended,security-and-quality
64-
65-
66-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
67-
# If this step fails, then you should remove it and run the build manually (see below)
68-
- name: Autobuild
69-
uses: github/codeql-action/autobuild@v3
70-
71-
# ℹ️ Command-line programs to run using the OS shell.
72-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
73-
74-
# If the Autobuild fails above, remove it and uncomment the following three lines.
75-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
76-
77-
# - run: |
78-
# echo "Run, Build Application using script"
79-
# ./location_of_script_within_repo/buildscript.sh
80-
81-
- name: Perform CodeQL Analysis
82-
uses: github/codeql-action/analyze@v3
83-
with:
84-
category: "/language:${{matrix.language}}"
27+
- name: Checkout repository
28+
uses: actions/checkout@v5
29+
30+
- name: Setup Java
31+
uses: actions/setup-java@v5
32+
with:
33+
cache: maven
34+
distribution: 'temurin'
35+
java-version: 21
36+
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@v4
39+
with:
40+
languages: ${{ matrix.language }}
41+
queries: +security-and-quality
42+
43+
- name: Autobuild
44+
uses: github/codeql-action/autobuild@v4
45+
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@v4
48+
with:
49+
category: "/language:${{ matrix.language }}"

.github/workflows/coveralls.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@ name: Coveralls
22

33
on: [push, pull_request]
44

5+
permissions: read-all
6+
57
jobs:
68
build:
79
if: github.repository_owner == 'mybatis'
810
runs-on: ubuntu-latest
911
steps:
10-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1113
- name: Set up JDK
12-
uses: actions/setup-java@v4
14+
uses: actions/setup-java@v5
1315
with:
16+
cache: maven
17+
distribution: temurin
1418
java-version: 21
15-
distribution: zulu
1619
- name: Report Coverage to Coveralls for Pull Requests
1720
if: github.event_name == 'pull_request'
1821
run: ./mvnw -B -V test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github -DpullRequest=$PR_NUMBER --no-transfer-progress

.github/workflows/site.yaml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,28 @@ on:
55
branches:
66
- site
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013
if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')
1114
runs-on: ubuntu-latest
1215
steps:
13-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1417
- name: Set up JDK
15-
uses: actions/setup-java@v4
18+
uses: actions/setup-java@v5
1619
with:
20+
cache: maven
21+
distribution: temurin
1722
java-version: 21
18-
distribution: zulu
19-
- uses: webfactory/ssh-agent@master
20-
with:
21-
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
2223
- name: Build site
23-
run: ./mvnw site site:stage -DskipTests -B -V --no-transfer-progress -Dlicense.skip=true
24+
run: ./mvnw site site:stage -DskipTests -Dlicense.skip=true -B -V --no-transfer-progress --settings ./.mvn/settings.xml
2425
env:
25-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
2728
- name: Deploy Site to gh-pages
28-
uses: JamesIves/github-pages-deploy-action@v4.5.0
29+
uses: JamesIves/github-pages-deploy-action@v4
2930
with:
30-
ssh-key: true
3131
branch: gh-pages
3232
folder: target/staging
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sonar.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,25 @@ on:
55
branches:
66
- master
77

8+
permissions: read-all
9+
810
jobs:
911
build:
1012
if: github.repository_owner == 'mybatis'
1113
runs-on: ubuntu-latest
1214
steps:
13-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1416
with:
1517
# Disabling shallow clone is recommended for improving relevancy of reporting
1618
fetch-depth: 0
1719
- name: Set up JDK
18-
uses: actions/setup-java@v4
20+
uses: actions/setup-java@v5
1921
with:
22+
cache: maven
23+
distribution: temurin
2024
java-version: 21
21-
distribution: zulu
2225
- name: Analyze with SonarCloud
23-
run: ./mvnw verify jacoco:report sonar:sonar -B -Dsonar.projectKey=mybatis_mybatis-dynamic-sql -Dsonar.organization=mybatis -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONAR_TOKEN -Dlicense.skip=true --no-transfer-progress
26+
run: ./mvnw verify jacoco:report sonar:sonar -B -V -Dsonar.projectKey=mybatis_mybatis-dynamic-sql -Dsonar.organization=mybatis -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONAR_TOKEN -Dlicense.skip=true --no-transfer-progress
2427
env:
2528
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2629
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/sonatype.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@ on:
55
branches:
66
- master
77

8+
permissions: read-all
9+
810
jobs:
911
build:
1012
if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')
1113
runs-on: ubuntu-latest
1214
steps:
13-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1416
- name: Set up JDK
15-
uses: actions/setup-java@v4
17+
uses: actions/setup-java@v5
1618
with:
19+
cache: maven
20+
distribution: temurin
1721
java-version: 21
18-
distribution: zulu
1922
- name: Deploy to Sonatype
2023
run: ./mvnw deploy -DskipTests -B -V --no-transfer-progress --settings ./.mvn/settings.xml -Dlicense.skip=true
2124
env:

.mvn/extensions.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2016-2024 the original author or authors.
4+
Copyright 2016-2025 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -20,6 +20,6 @@
2020
<extension>
2121
<groupId>fr.jcgay.maven</groupId>
2222
<artifactId>maven-profiler</artifactId>
23-
<version>3.2</version>
23+
<version>3.3</version>
2424
</extension>
2525
</extensions>

.mvn/settings.xml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2016-2024 the original author or authors.
4+
Copyright 2016-2025 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -18,12 +18,15 @@
1818
-->
1919
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2020
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
21+
2122
<servers>
23+
<!-- Used for sonatype snapshots and releases -->
2224
<server>
23-
<id>ossrh</id>
25+
<id>central</id>
2426
<username>${env.CI_DEPLOY_USERNAME}</username>
2527
<password>${env.CI_DEPLOY_PASSWORD}</password>
2628
</server>
29+
2730
<!-- Used for gh-pages-scm publish via maven-scm-publish-plugin -->
2831
<server>
2932
<id>gh-pages-scm</id>
@@ -32,10 +35,18 @@
3235
<scmVersion>gh-pages</scmVersion>
3336
</configuration>
3437
</server>
38+
39+
<!-- Github deployments (site) -->
3540
<server>
3641
<id>github</id>
37-
<username>${env.CI_DEPLOY_USERNAME}</username>
3842
<password>${env.GITHUB_TOKEN}</password>
3943
</server>
44+
45+
<!-- NVD API Access (dependency-check-plugin) -->
46+
<server>
47+
<id>nvd</id>
48+
<password>${env.NVD_API_KEY}</password>
49+
</server>
4050
</servers>
51+
4152
</settings>

0 commit comments

Comments
 (0)