Skip to content

Commit 69df75e

Browse files
authored
chore: add automatic license header management via Spotless (#611)
* feat: add automatic license header management via Spotless * feat: add automatic license header management via Spotless * chore: update license header management to use Spotless and reorganize header file location
1 parent 07fbf0a commit 69df75e

File tree

6 files changed

+23
-67
lines changed

6 files changed

+23
-67
lines changed

fesod/src/main/java/org/apache/fesod/excel/analysis/v07/handlers/sax/SharedStringsTableHandler.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,6 @@
1717
* under the License.
1818
*/
1919

20-
/* ====================================================================
21-
Licensed to the Apache Software Foundation (ASF) under one or more
22-
contributor license agreements. See the NOTICE file distributed with
23-
this work for additional information regarding copyright ownership.
24-
The ASF licenses this file to You under the Apache License, Version 2.0
25-
(the "License"); you may not use this file except in compliance with
26-
the License. You may obtain a copy of the License at
27-
28-
http://www.apache.org/licenses/LICENSE-2.0
29-
30-
Unless required by applicable law or agreed to in writing, software
31-
distributed under the License is distributed on an "AS IS" BASIS,
32-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33-
See the License for the specific language governing permissions and
34-
limitations under the License.
35-
==================================================================== */
36-
3720
package org.apache.fesod.excel.analysis.v07.handlers.sax;
3821

3922
import java.util.regex.Matcher;

fesod/src/main/java/org/apache/fesod/excel/util/ClassUtils.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,6 @@
6060
import org.apache.fesod.excel.metadata.property.StyleProperty;
6161
import org.apache.fesod.excel.write.metadata.holder.WriteHolder;
6262

63-
/**
64-
* Licensed to the Apache Software Foundation (ASF) under one or more
65-
* contributor license agreements. See the NOTICE file distributed with
66-
* this work for additional information regarding copyright ownership.
67-
* The ASF licenses this file to You under the Apache License, Version 2.0
68-
* (the "License"); you may not use this file except in compliance with
69-
* the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
70-
* <p>
71-
* Unless required by applicable law or agreed to in writing, software
72-
* distributed under the License is distributed on an "AS IS" BASIS,
73-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
74-
* See the License for the specific language governing permissions and
75-
* limitations under the License.
76-
*
77-
* @author Apache Software Foundation (ASF)
78-
*/
7963
public class ClassUtils {
8064

8165
/**

fesod/src/main/java/org/apache/fesod/excel/util/DateUtils.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,6 @@
1717
* under the License.
1818
*/
1919

20-
/* ====================================================================
21-
Licensed to the Apache Software Foundation (ASF) under one or more
22-
contributor license agreements. See the NOTICE file distributed with
23-
this work for additional information regarding copyright ownership.
24-
The ASF licenses this file to You under the Apache License, Version 2.0
25-
(the "License"); you may not use this file except in compliance with
26-
the License. You may obtain a copy of the License at
27-
28-
http://www.apache.org/licenses/LICENSE-2.0
29-
30-
Unless required by applicable law or agreed to in writing, software
31-
distributed under the License is distributed on an "AS IS" BASIS,
32-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33-
See the License for the specific language governing permissions and
34-
limitations under the License.
35-
==================================================================== */
36-
3720
package org.apache.fesod.excel.util;
3821

3922
import java.math.BigDecimal;

fesod/src/main/java/org/apache/fesod/excel/util/FastExcelTempFileCreationStrategy.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,6 @@
1717
* under the License.
1818
*/
1919

20-
/* ====================================================================
21-
Licensed to the Apache Software Foundation (ASF) under one or more
22-
contributor license agreements. See the NOTICE file distributed with
23-
this work for additional information regarding copyright ownership.
24-
The ASF licenses this file to You under the Apache License, Version 2.0
25-
(the "License"); you may not use this file except in compliance with
26-
the License. You may obtain a copy of the License at
27-
28-
http://www.apache.org/licenses/LICENSE-2.0
29-
30-
Unless required by applicable law or agreed to in writing, software
31-
distributed under the License is distributed on an "AS IS" BASIS,
32-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33-
See the License for the specific language governing permissions and
34-
limitations under the License.
35-
==================================================================== */
36-
3720
package org.apache.fesod.excel.util;
3821

3922
import static org.apache.poi.util.TempFile.JAVA_IO_TMPDIR;

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,10 @@
475475
<artifactId>spotless-maven-plugin</artifactId>
476476
<configuration>
477477
<java>
478+
<licenseHeader>
479+
<file>tools/spotless/license-header.txt</file>
480+
<delimiter>package |import |module </delimiter>
481+
</licenseHeader>
478482
<palantirJavaFormat>
479483
<version>2.72.0</version>
480484
</palantirJavaFormat>

tools/spotless/license-header.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+

0 commit comments

Comments
 (0)