ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [06/29] incubator-ignite git commit: ignite-111 plugin + settings for java headers
Date Wed, 04 Feb 2015 15:24:15 GMT
ignite-111 plugin + settings for java headers


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/6fd2b9f7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/6fd2b9f7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/6fd2b9f7

Branch: refs/heads/ignite-111
Commit: 6fd2b9f7bc6a00cf208c50f38d6f4665867795ab
Parents: 3dd4dbd
Author: avinogradov <avinogradov@gridgain.com>
Authored: Tue Feb 3 19:00:23 2015 +0300
Committer: avinogradov <avinogradov@gridgain.com>
Committed: Tue Feb 3 19:00:23 2015 +0300

----------------------------------------------------------------------
 header.txt            | 14 +++++++++++
 headerdefinitions.xml | 15 +++++++++++
 pom.xml               | 62 ++++++++++++++++++++++++++--------------------
 3 files changed, 64 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/6fd2b9f7/header.txt
----------------------------------------------------------------------
diff --git a/header.txt b/header.txt
new file mode 100644
index 0000000..a9ac967
--- /dev/null
+++ b/header.txt
@@ -0,0 +1,14 @@
+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.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/6fd2b9f7/headerdefinitions.xml
----------------------------------------------------------------------
diff --git a/headerdefinitions.xml b/headerdefinitions.xml
new file mode 100644
index 0000000..e325346
--- /dev/null
+++ b/headerdefinitions.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<additionalHeaders>
+    <javadoc_style>
+        <firstLine>/*</firstLine>
+        <beforeEachLine> * </beforeEachLine>
+        <endLine> */
+</endLine>
+        <!--skipLine></skipLine-->
+        <firstLineDetectionPattern>(\s|\t)*/\*.*$</firstLineDetectionPattern>
+        <lastLineDetectionPattern>.*\*/(\s|\t)*$</lastLineDetectionPattern>
+        <allowBlankLines>true</allowBlankLines>
+        <isMultiline>true</isMultiline>
+        <padLines>false</padLines>
+    </javadoc_style>
+</additionalHeaders>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/6fd2b9f7/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index c24db32..c6a2708 100644
--- a/pom.xml
+++ b/pom.xml
@@ -262,6 +262,41 @@
 
         <plugins>
             <plugin>
+            <groupId>com.mycila</groupId>
+            <artifactId>license-maven-plugin</artifactId>
+            <version>2.8</version>
+            <configuration>
+                <headerDefinitions>
+                    <headerDefinition>headerdefinitions.xml</headerDefinition>
+                </headerDefinitions>
+                <header>header.txt</header>
+                <properties>
+                    <inceptionYear>2014</inceptionYear>
+                </properties>
+                <includes>
+                    <include>src/**/*.java</include>
+                    <!--<include>src/**/*.xml</include>-->
+                </includes>
+                <excludes>
+                    <exclude>**/com/romix/scala/**</exclude>
+                    <exclude>**/GridOffHeapSnapTreeMap.java</exclude>
+                    <exclude>**/SnapTreeMap.java</exclude>
+                    <exclude>**/org/jetbrains/annotations/**</exclude>
+                    <exclude>**/org/pcollections/**</exclude>
+                    <exclude>**/org/jdk8/backport/**</exclude>
+                </excludes>
+            </configuration>
+            <executions>
+                <execution>
+                    <id>check-license</id>
+                    <phase>validate</phase>
+                    <goals>
+                        <goal>check</goal>
+                    </goals>
+                </execution>
+            </executions>
+        </plugin>
+            <plugin>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.1</version>
                 <configuration>
@@ -1276,33 +1311,6 @@
                             </execution>
                         </executions>
                     </plugin>
-
-                    <plugin>
-                        <groupId>org.codehaus.mojo</groupId>
-                        <artifactId>license-maven-plugin</artifactId>
-                        <version>1.8</version>
-                        <configuration>
-                            <inceptionYear>2014</inceptionYear>
-                            <organizationName>Apache</organizationName>
-                            <projectName>Ignite</projectName>
-                            <licenseName>apache_v2</licenseName>
-                            <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
-                            <failOnMissingHeader>true</failOnMissingHeader>
-                            <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
-                            <roots>
-                                <root>src/main/java</root>
-                                <root>src/test/java</root>
-                            </roots>
-                        </configuration>
-                        <executions>
-                            <execution>
-                                <phase>validate</phase>
-                                <goals>
-                                    <goal>check-file-header</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
                 </plugins>
             </build>
         </profile>


Mime
View raw message