Skip to content

Commit e90e6b5

Browse files
authored
chore: tidy up repo settings (#246)
Signed-off-by: tison <[email protected]>
1 parent e55dc9e commit e90e6b5

File tree

9 files changed

+23
-101
lines changed

9 files changed

+23
-101
lines changed

.editorconfig

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
root = true
22

3-
[*.{groovy, java, kt, xml}]
4-
#缩进风格:空格
3+
[*.{groovy,java,kt,xml}]
54
indent_style = space
6-
#缩进大小
75
indent_size = 4
8-
#换行符lf
96
end_of_line = lf
10-
#字符集utf-8
117
charset = utf-8
12-
#是否删除行尾的空格
138
trim_trailing_whitespace = true
14-
#是否在文件的最后插入一个空行
15-
insert_final_newline = true
9+
insert_final_newline = true

.gitee/ISSUE_TEMPLATE.zh-CN.md

Whitespace-only changes.

.github/ISSUE_TEMPLATE/bug.md

Whitespace-only changes.

.github/ISSUE_TEMPLATE/question.md

Whitespace-only changes.

.github/ISSUE_TEMPLATE/suggest.md

Whitespace-only changes.

.github/PULL_REQUEST_TEMPLATE/pull_request_template.md

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

.github/workflows/ci.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,42 @@
1-
#
2-
# Copyright 2009-2021 the original author or authors.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
16-
171
name: Java CI
182

19-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
push:
7+
branches: [ main ]
208

219
jobs:
2210
test:
23-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-24.04
2412
strategy:
2513
matrix:
2614
java: [ 8, 11, 17, 21]
2715
distribution: [ 'adopt' ]
2816
fail-fast: false
2917
max-parallel: 4
30-
name: Test JDK ${{ matrix.java }}
3118

19+
name: Test JDK ${{ matrix.java }}
3220
steps:
33-
- uses: actions/checkout@main
21+
- uses: actions/checkout@v4
3422
- name: Set up JDK
35-
uses: actions/setup-java@main
23+
uses: actions/setup-java@v4
3624
with:
3725
java-version: ${{ matrix.java }}
3826
distribution: ${{ matrix.distribution }}
3927
- name: Cache local Maven repository
40-
uses: actions/cache@main
28+
uses: actions/cache@v4
4129
with:
4230
path: ~/.m2/repository
4331
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
4432
restore-keys: |
4533
${{ runner.os }}-m2
46-
- name: Chmod
47-
run: chmod +x mvnw
4834
- name: Test with Maven
4935
if: ${{ matrix.java == '8' }}
5036
run: ./mvnw test -B -Dmaven.test.skip=false
5137
- name: Test with Maven
5238
if: ${{ matrix.java != '8' }}
5339
run: ./mvnw test -B -Dmaven.test.skip=false -DargLine="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED"
54-
5540
- name: Maven Build
5641
run: ./mvnw install -B -V
5742
- name: Java Doc

.github/workflows/release.yml

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,37 @@
1-
#
2-
# Copyright 2009-2021 the original author or authors.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
16-
171
name: Publish package to the Maven Central Repository
182

19-
20-
213
on:
224
release:
235
types: [created]
246

257
jobs:
268
publish:
27-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-24.04
2810
steps:
2911
- name: Check out Git repository
30-
uses: actions/checkout@main
12+
uses: actions/checkout@v4
3113
- name: Install Java and Maven
32-
uses: actions/setup-java@main
14+
uses: actions/setup-java@v4
3315
with:
3416
java-version: 8
3517
distribution: 'adopt'
3618
server-id: ossrh
3719
server-username: MAVEN_USERNAME
3820
server-password: MAVEN_PASSWORD
3921
- name: Cache local Maven repository
40-
uses: actions/cache@main
22+
uses: actions/cache@v4
4123
with:
4224
path: ~/.m2/repository
4325
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
4426
restore-keys: |
4527
${{ runner.os }}-m2
46-
- id: install-secret-key
47-
name: Install GPG secret key
48-
run: |
49-
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
28+
- name: Install GPG secret key
29+
run: cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
5030
- name: Publish package
51-
run: |
52-
mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} clean deploy -Dmaven.test.skip=true -Dmaven.javadoc.skip=false -Dgpg.skip=false
31+
run: >
32+
./mvnw --batch-mode clean deploy
33+
-Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}
34+
-Dmaven.test.skip=true -Dmaven.javadoc.skip=false -Dgpg.skip=false
5335
env:
5436
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
55-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
37+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

.github/workflows/sync2gitee.yml

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

0 commit comments

Comments
 (0)