Skip to content

Commit 8ba11c1

Browse files
authored
Merge pull request #295 from hazendaz/master
Update build files
2 parents c1220c9 + 3956688 commit 8ba11c1

File tree

11 files changed

+70
-112
lines changed

11 files changed

+70
-112
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ jobs:
99
matrix:
1010
cache: [maven]
1111
distribution: [temurin]
12-
java: [17, 21, 22, 23-ea]
13-
os: [ubuntu-latest, macos-latest]
12+
java: [17, 21, 23, 24-ea, 25-ea]
13+
os: [macos-latest, ubuntu-latest]
1414
fail-fast: false
1515
max-parallel: 4
1616
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
1717

1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Set up JDK ${{ matrix.java }} ${{ matrix.distribution }}
20+
- name: Setup Java ${{ matrix.java }} ${{ matrix.distribution }}
2121
uses: actions/setup-java@v4
2222
with:
2323
cache: ${{ matrix.cache }}
24-
java-version: ${{ matrix.java }}
2524
distribution: ${{ matrix.distribution }}
25+
java-version: ${{ matrix.java }}
2626
- name: Start Redis
2727
uses: shogo82148/[email protected]
2828
with:

.github/workflows/codeql.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '43 10 * * 2'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
15+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ java, kotlin ]
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Setup Java
31+
uses: actions/setup-java@v4
32+
with:
33+
cache: maven
34+
java-version: 21
35+
distribution: 'temurin'
36+
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@v3
39+
with:
40+
languages: ${{ matrix.language }}
41+
queries: +security-and-quality
42+
43+
- name: Autobuild
44+
uses: github/codeql-action/autobuild@v3
45+
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@v3
48+
with:
49+
category: "/language:${{ matrix.language }}"

.github/workflows/codeql.yml

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

.github/workflows/coveralls.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ name: Coveralls
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
coveralls:
77
if: github.repository_owner == 'mybatis'
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
11-
- name: Set up JDK
11+
- name: Setup Java
1212
uses: actions/setup-java@v4
1313
with:
1414
cache: maven
1515
distribution: temurin
1616
java-version: 21
1717
- name: Start Redis
18-
uses: supercharge/[email protected].0
18+
uses: shogo82148/[email protected].0
1919
with:
20-
redis-version: 6
20+
redis-version: latest
2121
- name: Report Coverage to Coveralls for Pull Requests
2222
if: github.event_name == 'pull_request'
2323
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Set up JDK
14+
- name: Setup Java
1515
uses: actions/setup-java@v4
1616
with:
1717
cache: maven

.github/workflows/sonar.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ jobs:
1414
with:
1515
# Disabling shallow clone is recommended for improving relevancy of reporting
1616
fetch-depth: 0
17-
- name: Set up JDK
17+
- name: Setup Java
1818
uses: actions/setup-java@v4
1919
with:
2020
cache: maven
2121
distribution: temurin
2222
java-version: 21
2323
- name: Start Redis
24-
uses: supercharge/[email protected].0
24+
uses: shogo82148/[email protected].0
2525
with:
26-
redis-version: 6
26+
redis-version: latest
2727
- name: Analyze with SonarCloud
28-
run: ./mvnw verify jacoco:report sonar:sonar -B -V -Dsonar.projectKey=mybatis_redis-cache -Dsonar.organization=mybatis -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONAR_TOKEN -Dlicense.skip=true --no-transfer-progress
28+
run: ./mvnw verify jacoco:report sonar:sonar -B -V -Dsonar.projectKey=mybatis_redis-cache -Dsonar.organization=mybatis -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONAR_TOKEN -Dlicense.skip=true --no-transfer-progress -Dsonar.scanner.skipJreProvisioning=true
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/sonatype.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Set up JDK
14+
- name: Setup Java
1515
uses: actions/setup-java@v4
1616
with:
1717
cache: maven
1818
distribution: temurin
1919
java-version: 21
2020
- name: Start Redis
21-
uses: supercharge/[email protected].0
21+
uses: shogo82148/[email protected].0
2222
with:
23-
redis-version: 6
23+
redis-version: latest
2424
- name: Deploy to Sonatype
2525
run: ./mvnw deploy -DskipTests -B -V --no-transfer-progress --settings ./.mvn/settings.xml -Dlicense.skip=true
2626
env:

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2015-2024 the original author or authors.
4+
Copyright 2015-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.

.mvn/settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2015-2024 the original author or authors.
4+
Copyright 2015-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.

.mvn/wrapper/MavenWrapperDownloader.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import java.net.URL;
2626
import java.nio.file.Files;
2727
import java.nio.file.Path;
28-
import java.nio.file.Paths;
2928
import java.nio.file.StandardCopyOption;
3029
import java.util.concurrent.ThreadLocalRandom;
3130

@@ -46,7 +45,7 @@ public static void main(String[] args) {
4645
log(" - Downloader started");
4746
final URL wrapperUrl = URI.create(args[0]).toURL();
4847
final String jarPath = args[1].replace("..", ""); // Sanitize path
49-
final Path wrapperJarPath = Paths.get(jarPath).toAbsolutePath().normalize();
48+
final Path wrapperJarPath = Path.of(jarPath).toAbsolutePath().normalize();
5049
downloadFileFromURL(wrapperUrl, wrapperJarPath);
5150
log("Done");
5251
} catch (IOException e) {

0 commit comments

Comments
 (0)