Skip to content

Commit c3a2f3f

Browse files
committed
chore: update dependencies and improve README
- Updated Spring Boot parent version to 3.5.3 - Updated project version to 3.4.2 - Updated fastexcel version to 1.2.0 - Improved README with updated version information and added Maven Central badge - Modified GitHub Actions workflow to use specific versions for actions and added auto-formatting step
1 parent 6e71d5e commit c3a2f3f

File tree

3 files changed

+35
-14
lines changed

3 files changed

+35
-14
lines changed

.github/workflows/maven.yml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,40 @@ on:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
16-
1715
steps:
18-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v2
1917
- name: Set up JDK 17
20-
uses: actions/setup-java@v4
18+
uses: actions/setup-java@v2
2119
with:
2220
java-version: '17'
2321
distribution: 'adopt'
24-
- name: Build with Maven
22+
23+
- name: mvn clean install
2524
run: mvn clean install
26-
- name: spring-javaformat:validate
25+
26+
- name: mvn spring-javaformat:validate
27+
id: validate
2728
run: mvn spring-javaformat:validate
29+
continue-on-error: true
30+
31+
- name: Auto format code if validation fails
32+
if: steps.validate.outcome == 'failure'
33+
run: mvn spring-javaformat:apply
34+
35+
- name: Create Pull Request for formatting changes
36+
if: steps.validate.outcome == 'failure'
37+
uses: peter-evans/create-pull-request@v5
38+
with:
39+
token: ${{ secrets.GITHUB_TOKEN }}
40+
commit-message: 'Auto-format code with spring-javaformat'
41+
title: 'Auto-format: Fix code formatting issues'
42+
body: |
43+
This PR was automatically created because the spring-javaformat validation failed.
44+
45+
The following changes have been applied:
46+
- Applied spring-javaformat:apply to fix formatting issues
47+
48+
Please review and merge if the changes look correct.
49+
branch: auto-format-${{ github.run_number }}
50+
delete-branch: true

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
以下是基于你提供的内容生成的开源项目 `excel-spring-boot-starter` 的 README 示例:
2-
3-
---
4-
51
# Excel Spring Boot Starter
62

3+
[![Maven Central](https://img.shields.io/maven-central/v/com.pig4cloud.excel/excel-spring-boot-starter.svg)](https://central.sonatype.com/artifact/com.pig4cloud.excel/excel-spring-boot-starter)
4+
75
`excel-spring-boot-starter` 是一个基于 `FastExcel` 实现的 Spring Boot Starter,用于简化 Excel 的读写操作。`FastExcel` 是一个 Java 开源项目,旨在以尽可能低的内存消耗实现对 Excel 文件的读写。通过 `FastExcel`,你可以在仅使用 64M 内存的情况下,在 1 分钟内读取 75M(46 万行,25 列)的 Excel 文件。
86

97
- 更多详细的使用说明,请参考文档:[https://www.yuque.com/pig4cloud/ogf9nv](https://www.yuque.com/pig4cloud/ogf9nv)
@@ -20,7 +18,7 @@
2018

2119
| 版本 | 支持版本 |
2220
|-------|-------------------|
23-
| 3.4.1 | 适配 Spring Boot 3.x |
21+
| 3.4.2 | 适配 Spring Boot 3.x |
2422
| 1.2.7 | 适配 Spring Boot 2.x |
2523

2624
`pom.xml` 中添加以下依赖:

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.4.4</version>
8+
<version>3.5.3</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.pig4cloud.excel</groupId>
1212
<artifactId>excel-spring-boot-starter</artifactId>
13-
<version>3.4.1</version>
13+
<version>3.4.2</version>
1414
<name>excel-spring-boot-starter</name>
1515
<description>easy and high performance excel</description>
1616
<url>https://pig4cloud.com</url>
@@ -36,7 +36,7 @@
3636
</scm>
3737
<properties>
3838
<java.version>17</java.version>
39-
<fastexcel.version>1.1.0</fastexcel.version>
39+
<fastexcel.version>1.2.0</fastexcel.version>
4040
<mica.version>3.1.4</mica.version>
4141
<spring.checkstyle.plugin>0.0.43</spring.checkstyle.plugin>
4242
<git.commit.plugin>4.9.10</git.commit.plugin>

0 commit comments

Comments
 (0)