HIVE-29755: Standardize ASF license headers across Hive source Java files - #6668
HIVE-29755: Standardize ASF license headers across Hive source Java files#6668hemanthumashankar0511 wants to merge 9 commits into
Conversation
|
Can you remove the following files and ensure CI/CD passes?
I originally started the normalization with an incremental approach because no one can review a big rewrite. I'm happy to review and merge your change if you could. |
|
@okumin I've deleted the three files and the ci passes right now |
…deleting asf.header.incremental files
|
@hemanthumashankar0511 Thank you! Would you mind if I asked you to apply the following changes. diff --git a/checkstyle/checkstyle.xml b/checkstyle/checkstyle.xml
index 306f8845a5..8448baa630 100644
--- a/checkstyle/checkstyle.xml
+++ b/checkstyle/checkstyle.xml
@@ -62,6 +62,7 @@
<module name="Translation"/>
<module name="Header">
+ <property name="severity" value="error"/>
<property name="headerFile" value="${config_loc}/asf.header"/>
</module>
diff --git a/standalone-metastore/checkstyle/checkstyle.xml b/standalone-metastore/checkstyle/checkstyle.xml
index f21bb3a068..0c5558a252 100644
--- a/standalone-metastore/checkstyle/checkstyle.xml
+++ b/standalone-metastore/checkstyle/checkstyle.xml
@@ -62,6 +62,7 @@
<module name="Translation"/>
<module name="Header">
+ <property name="severity" value="error"/>
<property name="headerFile" value="${config_loc}/asf.header"/>
</module>
diff --git a/storage-api/checkstyle/checkstyle.xml b/storage-api/checkstyle/checkstyle.xml
index a920085b9b..7fee2c5cf9 100644
--- a/storage-api/checkstyle/checkstyle.xml
+++ b/storage-api/checkstyle/checkstyle.xml
@@ -62,6 +62,7 @@
<module name="Translation"/>
<module name="Header">
+ <property name="severity" value="error"/>
<property name="headerFile" value="${config_loc}/asf.header"/>
</module>and then to run |
@okumin One thing I noticed, the Header module seems to expect |
|
@hemanthumashankar0511 |
| specific language governing permissions and limitations | ||
| under the License. | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software |
There was a problem hiding this comment.
Better to choose the correctly formatted asf header present here https://www.apache.org/legal/src-headers.html#headers
BOTTOM part i.e. after http://www.apache.org/licenses/LICENSE-2.0 has line breaks after different words
ASF website header:
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.
There was a problem hiding this comment.
@Aggarwal-Raghav Thanks for pointing it out. I’ve updated the canonical asf.header to match the ASF website’s wrapped footer formatting and re-aligned the Java headers accordingly. Non-Java headers (e.g. .mvn/develocity.xml, poms, configs) will be handled in a follow-up JIRA.
okumin
left a comment
There was a problem hiding this comment.
+1. Please check the minor comment and accept the suggesion if I'm not wrong 👍
Co-authored-by: Shohei Okumiya <okumin@apache.org>
Co-authored-by: Shohei Okumiya <okumin@apache.org>
|
Created follow up jira to address non java source files: HIVE-29812 |
|



What changes were proposed in this pull request?
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?