diff --git a/checkstyle/config.xml b/checkstyle/config.xml new file mode 100644 index 000000000..2b99e29fb --- /dev/null +++ b/checkstyle/config.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + diff --git a/checkstyle/java-header.txt b/checkstyle/java-header.txt new file mode 100644 index 000000000..83fac9e97 --- /dev/null +++ b/checkstyle/java-header.txt @@ -0,0 +1,17 @@ +^\Q/*\E$ +^\Q * Copyright 2011-2019 the original author or authors.\E$ +^\Q *\E$ +^\Q * Licensed under the Apache License, Version 2.0 (the "License");\E$ +^\Q * you may not use this file except in compliance with the License.\E$ +^\Q * You may obtain a copy of the License at\E$ +^\Q *\E$ +^\Q * http://www.apache.org/licenses/LICENSE-2.0\E$ +^\Q *\E$ +^\Q * Unless required by applicable law or agreed to in writing, software\E$ +^\Q * distributed under the License is distributed on an "AS IS" BASIS,\E$ +^\Q * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\E$ +^\Q * See the License for the specific language governing permissions and\E$ +^\Q * limitations under the License.\E$ +^\Q */\E$ +^\Qpackage\E .+;$ +^.*$ diff --git a/checkstyle/suppressions.xml b/checkstyle/suppressions.xml new file mode 100644 index 000000000..3875722d5 --- /dev/null +++ b/checkstyle/suppressions.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/pom.xml b/pom.xml index b6ea82952..a13db8e16 100644 --- a/pom.xml +++ b/pom.xml @@ -35,11 +35,14 @@ - multi spring-data-neo4j + + multi + + 8.16 + 3.0.0 3.2.0-alpha01 2.2.0.BUILD-SNAPSHOT - 1.8 @@ -206,4 +209,45 @@ + + + + + maven-checkstyle-plugin + ${maven-checkstyle-plugin.version} + + + com.puppycrawl.tools + checkstyle + ${checkstyle.version} + + + + checkstyle/config.xml + checkstyle/suppressions.xml + checkstyle/java-header.txt + ${project.build.sourceEncoding} + true + true + true + + + + + + + maven-checkstyle-plugin + + + validate + validate + + check + + + + + + +