Skip to content

Commit 52139a4

Browse files
committed
Merge branch 'main' into hotfix/fix_repeat_case
# Conflicts: # fastexcel-test/src/test/java/cn/idev/excel/test/temp/simple/RepeatTest.java
2 parents 77a8687 + a67cddc commit 52139a4

File tree

531 files changed

+8199
-8829
lines changed

Some content is hidden

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

531 files changed

+8199
-8829
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,40 @@
11
name: Publish package to the Maven Central Repository
22

3+
4+
35
on:
46
release:
57
types: [created]
8+
workflow_dispatch:
69

710
jobs:
811
publish:
9-
runs-on: ubuntu-24.04
12+
runs-on: ubuntu-latest
1013
steps:
1114
- name: Check out Git repository
12-
uses: actions/checkout@v4
15+
uses: actions/checkout@main
1316
- name: Install Java and Maven
14-
uses: actions/setup-java@v4
17+
uses: actions/setup-java@main
1518
with:
1619
java-version: 8
1720
distribution: 'adopt'
1821
server-id: ossrh
1922
server-username: MAVEN_USERNAME
2023
server-password: MAVEN_PASSWORD
2124
- name: Cache local Maven repository
22-
uses: actions/cache@v4
25+
uses: actions/cache@main
2326
with:
2427
path: ~/.m2/repository
2528
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
2629
restore-keys: |
2730
${{ runner.os }}-m2
28-
- name: Install GPG secret key
29-
run: cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
31+
- id: install-secret-key
32+
name: Install GPG secret key
33+
run: |
34+
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
3035
- name: Publish package
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
36+
run: |
37+
mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} clean deploy -Dmaven.test.skip=true -Dmaven.javadoc.skip=false -Dgpg.skip=false
3538
env:
3639
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3740
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

.mvn/wrapper/maven-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
18-
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
4. 更新并增加相关API文档和说明。
2323

2424
具体更新内容如下:
25-
- 【新增】新功能-支持支持自定义表头解析 [#257](https://github.com/fast-excel/fastexcel/pull/257) [@721806280](https://github.com/721806280)
25+
- 【新增】新功能-支持自定义表头解析 [#257](https://github.com/fast-excel/fastexcel/pull/257) [@721806280](https://github.com/721806280)
2626
- 【新增】增加测试用例 [#264](https://github.com/fast-excel/fastexcel/pull/264) [@happyfeetw](https://github.com/happyfeetw)
2727
- 【改进】将开源协议修改为 Apache-2.0 license [#251](https://github.com/fast-excel/fastexcel/pull/251) [@psxjoy](https://github.com/psxjoy)
2828
- 【修复】修复最后空列无法读取的BUG [#287](https://github.com/fast-excel/fastexcel/pull/287) [@delei](https://github.com/delei)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ FastExcel 将始终坚持免费开源,并采用商业友好的 Apache 协议
4545
<dependency>
4646
<groupId>cn.idev.excel</groupId>
4747
<artifactId>fastexcel</artifactId>
48-
<version>1.1.0</version>
48+
<version>1.2.0</version>
4949
</dependency>
5050
```
5151
### Gradle
5252
如果您使用 Gradle 进行项目构建,请在 `build.gradle` 文件中引入以下配置:
5353
```gradle
5454
dependencies {
55-
implementation 'cn.idev.excel:fastexcel:1.1.0'
55+
implementation 'cn.idev.excel:fastexcel:1.2.0'
5656
}
5757
```
5858
## EasyExcel 与 FastExcel 的区别
@@ -77,7 +77,7 @@ dependencies {
7777
<dependency>
7878
<groupId>cn.idev.excel</groupId>
7979
<artifactId>fastexcel</artifactId>
80-
<version>1.1.0</version>
80+
<version>1.2.0</version>
8181
</dependency>
8282
```
8383

README_EN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ If you are using Maven for project building, add the following configuration in
3737
<dependency>
3838
<groupId>cn.idev.excel</groupId>
3939
<artifactId>fastexcel</artifactId>
40-
<version>1.1.0</version>
40+
<version>1.2.0</version>
4141
</dependency>
4242
```
4343
### Gradle
4444
If you are using Gradle for project building, add the following configuration in the build.gradle file:
4545

4646
```gradle
4747
dependencies {
48-
implementation 'cn.idev.excel:fastexcel:1.1.0'
48+
implementation 'cn.idev.excel:fastexcel:1.2.0'
4949
}
5050
```
5151
## Update
@@ -73,7 +73,7 @@ Replace with:
7373
<dependency>
7474
<groupId>cn.idev.excel</groupId>
7575
<artifactId>fastexcel</artifactId>
76-
<version>1.1.0</version>
76+
<version>1.2.0</version>
7777
</dependency>
7878
```
7979
### 2. Update Code

README_JP.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ Mavenでプロジェクトを構築する場合、`pom.xml`ファイルに次の
3737
<dependency>
3838
<groupId>cn.idev.excel</groupId>
3939
<artifactId>fastexcel</artifactId>
40-
<version>1.1.0</version>
40+
<version>1.2.0</version>
4141
</dependency>
4242
```
4343
### Gradle
4444

4545
Gradleでプロジェクトを構築する場合、build.gradleファイルに次の構成を含めてください:
4646
```gradle
4747
dependencies {
48-
implementation 'cn.idev.excel:fastexcel:1.1.0'
48+
implementation 'cn.idev.excel:fastexcel:1.2.0'
4949
}
5050
```
5151
## 更新する
@@ -70,7 +70,7 @@ EasyExcelの依存関係をFastExcelの依存関係に置き換えます。以
7070
<dependency>
7171
<groupId>cn.idev.excel</groupId>
7272
<artifactId>fastexcel</artifactId>
73-
<version>1.1.0</version>
73+
<version>1.2.0</version>
7474
</dependency>
7575
```
7676
### 2. コードの修正

fastexcel-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>cn.idev.excel</groupId>
88
<artifactId>fastexcel-parent</artifactId>
9-
<version>1.1.0</version>
9+
<version>1.2.0</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

fastexcel-core/src/main/java/cn/idev/excel/EasyExcel.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@
55
*
66
* @author jipengfei
77
*/
8-
public class EasyExcel extends FastExcelFactory {
9-
10-
}
8+
public class EasyExcel extends FastExcelFactory {}

fastexcel-core/src/main/java/cn/idev/excel/ExcelReader.java

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
package cn.idev.excel;
22

3+
import java.io.Closeable;
4+
import java.util.Arrays;
5+
import java.util.List;
6+
7+
import cn.idev.excel.read.metadata.ReadSheet;
8+
import cn.idev.excel.read.metadata.ReadWorkbook;
39
import cn.idev.excel.analysis.ExcelAnalyser;
410
import cn.idev.excel.analysis.ExcelAnalyserImpl;
511
import cn.idev.excel.analysis.ExcelReadExecutor;
612
import cn.idev.excel.context.AnalysisContext;
7-
import cn.idev.excel.read.metadata.ReadSheet;
8-
import cn.idev.excel.read.metadata.ReadWorkbook;
9-
import lombok.extern.slf4j.Slf4j;
1013

11-
import java.io.Closeable;
12-
import java.util.Arrays;
13-
import java.util.List;
14+
import lombok.extern.slf4j.Slf4j;
1415

1516
/**
1617
* Excel readers are all read in event mode.
@@ -19,16 +20,16 @@
1920
*/
2021
@Slf4j
2122
public class ExcelReader implements Closeable {
22-
23+
2324
/**
2425
* Analyser
2526
*/
2627
private final ExcelAnalyser excelAnalyser;
27-
28+
2829
public ExcelReader(ReadWorkbook readWorkbook) {
2930
excelAnalyser = new ExcelAnalyserImpl(readWorkbook);
3031
}
31-
32+
3233
/**
3334
* Parse all sheet content by default
3435
*
@@ -38,14 +39,14 @@ public ExcelReader(ReadWorkbook readWorkbook) {
3839
public void read() {
3940
readAll();
4041
}
41-
42+
4243
/***
4344
* Parse all sheet content by default
4445
*/
4546
public void readAll() {
4647
excelAnalyser.analysis(null, Boolean.TRUE);
4748
}
48-
49+
4950
/**
5051
* Parse the specified sheet,SheetNo start from 0
5152
*
@@ -54,7 +55,7 @@ public void readAll() {
5455
public ExcelReader read(ReadSheet... readSheet) {
5556
return read(Arrays.asList(readSheet));
5657
}
57-
58+
5859
/**
5960
* Read multiple sheets.
6061
*
@@ -65,7 +66,7 @@ public ExcelReader read(List<ReadSheet> readSheetList) {
6566
excelAnalyser.analysis(readSheetList, Boolean.FALSE);
6667
return this;
6768
}
68-
69+
6970
/**
7071
* Context for the entire execution process
7172
*
@@ -74,7 +75,7 @@ public ExcelReader read(List<ReadSheet> readSheetList) {
7475
public AnalysisContext analysisContext() {
7576
return excelAnalyser.analysisContext();
7677
}
77-
78+
7879
/**
7980
* Current executor
8081
*
@@ -83,7 +84,7 @@ public AnalysisContext analysisContext() {
8384
public ExcelReadExecutor excelExecutor() {
8485
return excelAnalyser.excelExecutor();
8586
}
86-
87+
8788
/**
8889
* @return
8990
* @deprecated please use {@link #analysisContext()}
@@ -92,7 +93,7 @@ public ExcelReadExecutor excelExecutor() {
9293
public AnalysisContext getAnalysisContext() {
9394
return analysisContext();
9495
}
95-
96+
9697
/**
9798
* Complete the entire read file.Release the cache and close stream.
9899
*/
@@ -101,14 +102,15 @@ public void finish() {
101102
excelAnalyser.finish();
102103
}
103104
}
104-
105+
105106
@Override
106107
public void close() {
107108
finish();
108109
}
109-
110+
110111
/**
111112
* Prevents calls to {@link #finish} from freeing the cache
113+
*
112114
*/
113115
@Override
114116
protected void finalize() {

0 commit comments

Comments
 (0)