Browse Source

升级到4.0.0-beta1

pull/2565/merge
Jiaju Zhuang 2 years ago
parent
commit
5264a5d56a
  1. 3
      easyexcel-test/src/test/java/com/alibaba/easyexcel/test/temp/StyleTest.java
  2. 42
      pom.xml
  3. 7
      update.md

3
easyexcel-test/src/test/java/com/alibaba/easyexcel/test/temp/StyleTest.java

@ -7,7 +7,6 @@ import java.lang.reflect.Field;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
import org.apache.poi.hssf.usermodel.HSSFRow; import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.hssf.usermodel.HSSFWorkbook;
@ -181,7 +180,7 @@ public class StyleTest {
private void isDate(Cell cell) { private void isDate(Cell cell) {
System.out.println( System.out.println(
DateUtil.isADateFormat(cell.getCellStyle().getDataFormat(), cell.getCellStyle().getDataFormatString())); DateUtil.isADateFormat(cell.getCellStyle().getDataFormat(), cell.getCellStyle().getDataFormatString()));
System.out.println(HSSFDateUtil.isCellDateFormatted(cell)); //System.out.println(HSSFDateUtil.isCellDateFormatted(cell));
DataFormatter f = new DataFormatter(); DataFormatter f = new DataFormatter();
System.out.println(f.formatCellValue(cell)); System.out.println(f.formatCellValue(cell));

42
pom.xml

@ -20,7 +20,7 @@
<properties> <properties>
<revision>3.2.1</revision> <revision>4.0.0-beta1</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>1.8</jdk.version> <jdk.version>1.8</jdk.version>
<gpg.skip>true</gpg.skip> <gpg.skip>true</gpg.skip>
@ -106,52 +106,36 @@
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId> <artifactId>commons-csv</artifactId>
<version>1.9.0</version> <version>1.10.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.32</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ehcache</groupId> <groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId> <artifactId>ehcache</artifactId>
<version>3.9.9</version> <version>3.9.9</version>
</dependency> </dependency>
<!-- spring -->
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>lombok</artifactId> <artifactId>spring-boot-dependencies</artifactId>
<version>1.18.20</version> <version>2.7.8</version>
<type>pom</type>
<scope>import</scope>
</dependency> </dependency>
<!-- provided -->
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.projectlombok</groupId>
<artifactId>spring-core</artifactId> <artifactId>lombok</artifactId>
<version>5.3.15</version> <version>1.18.26</version>
</dependency> </dependency>
<!-- test --> <!-- test -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.5</version>
</dependency>
<dependency> <dependency>
<groupId>com.alibaba.fastjson2</groupId> <groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId> <artifactId>fastjson2</artifactId>
<version>2.0.23</version> <version>2.0.23</version>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.6.3</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>

7
update.md

@ -1,3 +1,10 @@
# 4.0.0-beta1
* `poi`由`4.1.2`升级到`5.2.3`
* `commons-csv`由`1.9.0`升级到`1.10.0`
* `commons-csv`由`1.7.32`升级到`1.7.36`
* `ehcache`由`3.9.9`升级到`3.10.8`
# 3.2.1 # 3.2.1
* 兼容`LocalDate` [Issue #2908](https://github.com/alibaba/easyexcel/issues/2908) * 兼容`LocalDate` [Issue #2908](https://github.com/alibaba/easyexcel/issues/2908)

Loading…
Cancel
Save