This is an automated email from the ASF dual-hosted git repository. yasith pushed a commit to branch styles-and-rules in repository https://gitbox.apache.org/repos/asf/airavata.git
commit 8b784c213fa760d145734cb911449771624ffca4 Author: yasithdev <[email protected]> AuthorDate: Fri Jun 6 18:04:23 2025 -0500 add header-setting rule --- apache-license-header-java.txt | 19 +++++++++++++ apache-license-header-xml.txt | 18 +++++++++++++ pom.xml | 61 +++++++++++++++++++++++++++++------------- 3 files changed, 80 insertions(+), 18 deletions(-) diff --git a/apache-license-header-java.txt b/apache-license-header-java.txt new file mode 100644 index 0000000000..7f36d7ff94 --- /dev/null +++ b/apache-license-header-java.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. +*/ diff --git a/apache-license-header-xml.txt b/apache-license-header-xml.txt new file mode 100644 index 0000000000..176584ccd3 --- /dev/null +++ b/apache-license-header-xml.txt @@ -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. +--> diff --git a/pom.xml b/pom.xml index ca6b3f3258..869f9dd2e5 100644 --- a/pom.xml +++ b/pom.xml @@ -1,24 +1,20 @@ -<?xml version="1.0" encoding="UTF-8"?> <!-- +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 - 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. - +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. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> @@ -413,6 +409,35 @@ </executions> </plugin> + <!-- for consistent code styling --> + <plugin> + <groupId>com.diffplug.spotless</groupId> + <artifactId>spotless-maven-plugin</artifactId> + <version>2.44.5</version> + <configuration> + <java> + <!-- <googleJavaFormat/> --> + <licenseHeader> + <file>apache-license-header-java.txt</file> + </licenseHeader> + </java> + <pom> + <licenseHeader> + <file>apache-license-header-xml.txt</file> + <delimiter><![CDATA[<project]]></delimiter> + </licenseHeader> + </pom> + </configuration> + <executions> + <execution> + <goals> + <goal>check</goal> + </goals> + <phase>validate</phase> + </execution> + </executions> + </plugin> + </plugins> </build>
