This is an automated email from the ASF dual-hosted git repository.

zhangzhe pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fesod.git


The following commit(s) were added to refs/heads/main by this push:
     new 69df75eb chore: add automatic license header management via Spotless 
(#611)
69df75eb is described below

commit 69df75eb3cb325bb52f1120324f2769709adecb2
Author: ian zhang <[email protected]>
AuthorDate: Mon Sep 29 00:00:41 2025 +0800

    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
---
 .../v07/handlers/sax/SharedStringsTableHandler.java   | 17 -----------------
 .../java/org/apache/fesod/excel/util/ClassUtils.java  | 16 ----------------
 .../java/org/apache/fesod/excel/util/DateUtils.java   | 17 -----------------
 .../excel/util/FastExcelTempFileCreationStrategy.java | 17 -----------------
 pom.xml                                               |  4 ++++
 tools/spotless/license-header.txt                     | 19 +++++++++++++++++++
 6 files changed, 23 insertions(+), 67 deletions(-)

diff --git 
a/fesod/src/main/java/org/apache/fesod/excel/analysis/v07/handlers/sax/SharedStringsTableHandler.java
 
b/fesod/src/main/java/org/apache/fesod/excel/analysis/v07/handlers/sax/SharedStringsTableHandler.java
index e46bd1bf..e5b878ad 100644
--- 
a/fesod/src/main/java/org/apache/fesod/excel/analysis/v07/handlers/sax/SharedStringsTableHandler.java
+++ 
b/fesod/src/main/java/org/apache/fesod/excel/analysis/v07/handlers/sax/SharedStringsTableHandler.java
@@ -17,23 +17,6 @@
  * under the License.
  */
 
-/* ====================================================================
-   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.
-==================================================================== */
-
 package org.apache.fesod.excel.analysis.v07.handlers.sax;
 
 import java.util.regex.Matcher;
diff --git a/fesod/src/main/java/org/apache/fesod/excel/util/ClassUtils.java 
b/fesod/src/main/java/org/apache/fesod/excel/util/ClassUtils.java
index 0ffd5eb8..547b873d 100644
--- a/fesod/src/main/java/org/apache/fesod/excel/util/ClassUtils.java
+++ b/fesod/src/main/java/org/apache/fesod/excel/util/ClassUtils.java
@@ -60,22 +60,6 @@ import 
org.apache.fesod.excel.metadata.property.NumberFormatProperty;
 import org.apache.fesod.excel.metadata.property.StyleProperty;
 import org.apache.fesod.excel.write.metadata.holder.WriteHolder;
 
-/**
- * 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
- * <p>
- * 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.
- *
- * @author Apache Software Foundation (ASF)
- */
 public class ClassUtils {
 
     /**
diff --git a/fesod/src/main/java/org/apache/fesod/excel/util/DateUtils.java 
b/fesod/src/main/java/org/apache/fesod/excel/util/DateUtils.java
index bda432ca..0e2ce954 100644
--- a/fesod/src/main/java/org/apache/fesod/excel/util/DateUtils.java
+++ b/fesod/src/main/java/org/apache/fesod/excel/util/DateUtils.java
@@ -17,23 +17,6 @@
  * under the License.
  */
 
-/* ====================================================================
-   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.
-==================================================================== */
-
 package org.apache.fesod.excel.util;
 
 import java.math.BigDecimal;
diff --git 
a/fesod/src/main/java/org/apache/fesod/excel/util/FastExcelTempFileCreationStrategy.java
 
b/fesod/src/main/java/org/apache/fesod/excel/util/FastExcelTempFileCreationStrategy.java
index 8c881a9b..1a0c24d6 100644
--- 
a/fesod/src/main/java/org/apache/fesod/excel/util/FastExcelTempFileCreationStrategy.java
+++ 
b/fesod/src/main/java/org/apache/fesod/excel/util/FastExcelTempFileCreationStrategy.java
@@ -17,23 +17,6 @@
  * under the License.
  */
 
-/* ====================================================================
-   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.
-==================================================================== */
-
 package org.apache.fesod.excel.util;
 
 import static org.apache.poi.util.TempFile.JAVA_IO_TMPDIR;
diff --git a/pom.xml b/pom.xml
index d58648ad..172ff22d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -475,6 +475,10 @@
                 <artifactId>spotless-maven-plugin</artifactId>
                 <configuration>
                     <java>
+                        <licenseHeader>
+                            <file>tools/spotless/license-header.txt</file>
+                            <delimiter>package |import |module </delimiter>
+                        </licenseHeader>
                         <palantirJavaFormat>
                             <version>2.72.0</version>
                         </palantirJavaFormat>
diff --git a/tools/spotless/license-header.txt 
b/tools/spotless/license-header.txt
new file mode 100644
index 00000000..bd244d07
--- /dev/null
+++ b/tools/spotless/license-header.txt
@@ -0,0 +1,19 @@
+/*
+ * 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.
+ */
+


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to