-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d438a8
commit 6faad90
Showing
628 changed files
with
46,172 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
root = true | ||
|
||
[*.{groovy, java, kt, xml}] | ||
#缩进风格:空格 | ||
indent_style = space | ||
#缩进大小 | ||
indent_size = 4 | ||
#换行符lf | ||
end_of_line = lf | ||
#字符集utf-8 | ||
charset = utf-8 | ||
#是否删除行尾的空格 | ||
trim_trailing_whitespace = true | ||
#是否在文件的最后插入一个空行 | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# 建议先去看文档 | ||
[快速开始](https://easyexcel.opensource.alibaba.com/docs/current/) 、[常见问题](https://easyexcel.opensource.alibaba.com/qa/) | ||
# 异常代码 | ||
```java | ||
这里写你的代码 | ||
``` | ||
# 异常提示 | ||
大家尽量把问题一次性描述清楚,然后贴上全部异常,这样方便把问题一次性解决掉。 | ||
# 其他描述 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: bug | ||
about: 发现一个新的Bug | ||
title: '' | ||
labels: bug | ||
assignees: zhuangjiaju | ||
|
||
--- | ||
|
||
# 建议先去看文档 | ||
[快速开始](https://easyexcel.opensource.alibaba.com/docs/current/) 、[常见问题](https://easyexcel.opensource.alibaba.com/qa/) | ||
# 触发场景描述 | ||
|
||
# 触发Bug的代码 | ||
```java | ||
这里写代码 | ||
``` | ||
# 提示的异常或者没有达到的效果 | ||
大家尽量把问题一次性描述清楚,然后贴上全部异常,这样方便把问题一次性解决掉。 | ||
至少大家要符合一个原则就是,能让其他人复现出这个问题,如果无法复现,肯定无法解决。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: question | ||
about: 有使用疑问,请先阅读“快速开始”,上面无法解决再提交问题。处理完请关闭问题。 | ||
title: '' | ||
labels: help wanted | ||
assignees: '' | ||
|
||
--- | ||
|
||
# 建议先去看文档 | ||
[快速开始](https://easyexcel.opensource.alibaba.com/docs/current/) 、[常见问题](https://easyexcel.opensource.alibaba.com/qa/) | ||
# 异常代码 | ||
```java | ||
这里写你的代码 | ||
``` | ||
# 异常提示 | ||
大家尽量把问题一次性描述清楚,然后贴上全部异常,这样方便把问题一次性解决掉。 | ||
至少大家要符合一个原则就是,能让其他人复现出这个问题,如果无法复现,肯定无法解决。 | ||
# 问题描述 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
name: suggest | ||
about: 给出一些建议的能 | ||
title: '' | ||
labels: suggest | ||
assignees: '' | ||
|
||
--- | ||
|
||
# 建议先去看文档 | ||
[快速开始](https://easyexcel.opensource.alibaba.com/docs/current/) 、[常见问题](https://easyexcel.opensource.alibaba.com/qa/) | ||
# 建议描述 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## 关联的ISSUE | ||
TODO 请说明关联的异常 | ||
## 问题描述&解决 | ||
TODO 描述下出了什么问题,必要的话提供excel。在PR合并前,审核同学一定会复现问题,然后再PR合并的。 | ||
## 代码注意点 | ||
* 确认已经安装了阿里巴巴代码规约插件:[alibaba-java-coding-guidelines ](https://plugins.jetbrains.com/plugin/10046-alibaba-java-coding-guidelines) | ||
* src/main 下面不要出现中文注释 | ||
* src/test/core && src/test/demo 下面要新增测试案例请严格参照其他的,包括注释等等什么都不要错 | ||
* 如果只是自己测试 全部加入到 src/test/temp | ||
* 如果改动量较大(5+文件)尽量先和作者沟通,这个风险很大 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# | ||
# Copyright 2009-2021 the original author or authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
name: Java CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ 8, 11, 17, 21] | ||
distribution: [ 'adopt' ] | ||
fail-fast: false | ||
max-parallel: 4 | ||
name: Test JDK ${{ matrix.java }} | ||
|
||
steps: | ||
- uses: actions/checkout@main | ||
- name: Set up JDK | ||
uses: actions/setup-java@main | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: ${{ matrix.distribution }} | ||
- name: Cache local Maven repository | ||
uses: actions/cache@main | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-m2 | ||
- name: Chmod | ||
run: chmod +x mvnw | ||
- name: Test with Maven | ||
if: ${{ matrix.java == '8' }} | ||
run: ./mvnw test -B -Dmaven.test.skip=false | ||
- name: Test with Maven | ||
if: ${{ matrix.java != '8' }} | ||
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" | ||
- name: Maven Build | ||
run: ./mvnw install -B -V | ||
- name: Java Doc | ||
run: ./mvnw javadoc:javadoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# | ||
# Copyright 2009-2021 the original author or authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
name: Publish package to the Maven Central Repository | ||
|
||
|
||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@main | ||
- name: Install Java and Maven | ||
uses: actions/setup-java@main | ||
with: | ||
java-version: 8 | ||
distribution: 'adopt' | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
- name: Cache local Maven repository | ||
uses: actions/cache@main | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-m2 | ||
- id: install-secret-key | ||
name: Install GPG secret key | ||
run: | | ||
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import | ||
- name: Publish package | ||
run: | | ||
mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} clean deploy -Dmaven.test.skip=true -Dmaven.javadoc.skip=false -Dgpg.skip=false | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 通过 Github action, 在仓库的每一次 commit 后自动同步到 Gitee 上 | ||
name: Mirror the Github organization repos to Gitee | ||
on: [push] | ||
|
||
jobs: | ||
repo-sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
with: | ||
persist-credentials: false | ||
- name: Mirror the Github organization repos to Gitee. | ||
uses: Yikun/hub-mirror-action@master | ||
with: | ||
# 必选,需要同步的 Github 这里记住选择的是仓库 或者账号 而不是具体的项目 | ||
src: github/alibaba | ||
# 必选,需要同步到的 Gitee 这里记住选择的是仓库 或者账号 而不是具体的项目 | ||
dst: gitee/easyexcel | ||
# 必选,Gitee公钥对应的私钥,https://gitee.com/profile/sshkeys | ||
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} | ||
# 必选,Gitee对应的用于创建仓库的token,https://gitee.com/profile/personal_access_tokens | ||
dst_token: ${{ secrets.GITEE_TOKEN }} | ||
# 如果是组织,指定组织即可,默认为用户 user | ||
account_type: org | ||
# 需要同步的仓库里面的项目 | ||
static_list: "easyexcel" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.idea/ | ||
*/.settings/ | ||
*.idea | ||
.DS_Store | ||
**/.iml* | ||
*.iml | ||
**/.class | ||
**/.classpath | ||
**/.project | ||
*/target/ | ||
target/ | ||
*.ipr | ||
*.iws | ||
antx.properties | ||
output/ | ||
.flattened-pom.xml | ||
dependency-reduced-pom.xml |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip | ||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## 前言 | ||
非常感谢您愿意协助EasyExcel的开发,EasyExcel成长离不开大家的贡献。但是为了合作的更有效率,希望我们在贡献代码的时候能按照如下约定。 | ||
## 提前沟通 | ||
尽量把自己的想法和实现思路提前沟通,可以通过issue,钉钉,QQ都可以,可能很多问题我们内部已经讨论过,由于各种原因后续不会支持,但是您这边又开发好了,这样容易浪费您的时间。 | ||
## 代码规范 | ||
请先安装阿里巴巴代码规约插件!!!https://plugins.jetbrains.com/plugin/10046-alibaba-java-coding-guidelines | ||
目前代码规范已经集成了自动校验,然后源代码尽量不要有中文注释。在新增功能的时候,尽量注意补充junit。core代表每次travis-ci都会跑的测试案例,然后demo用于对外看到,temp里面随便写。 | ||
## 提交分支 | ||
建议提交到最新的版本号.x上面,比如 3.x之类的版本,为了方便其他同学阅读源代码,所以目前的思路是master和maven center的最新版本代码保持一致,然后您提交过来的代码我们可能会稍微做一些修改。所以提交到开发分支会比较好。fork也可以直接fork该分支。 |
Oops, something went wrong.