diff --git a/applications/stream-applications-core/pom.xml b/applications/stream-applications-core/pom.xml index 179f1116..f3356f8e 100644 --- a/applications/stream-applications-core/pom.xml +++ b/applications/stream-applications-core/pom.xml @@ -36,15 +36,14 @@ true true 8.29 + ../../etc/checkstyle - https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/master/spring-cloud-build-tools/src/checkstyle/checkstyle-suppressions.xml + ${checkstyle.location}/checkstyle-suppressions.xml - https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/master/spring-cloud-build-tools/src/checkstyle/nohttp-checkstyle.xml + ${checkstyle.location}/nohttp-checkstyle.xml - - https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/master/spring-cloud-build-tools/src/checkstyle/checkstyle-suppressions.xml - + ${checkstyle.location}/checkstyle-suppressions.xml 0.0.2.RELEASE true 0.0.7 @@ -389,8 +388,8 @@ true ${disable.checks} - checkstyle.xml - checkstyle-header.txt + ${checkstyle.location}/checkstyle.xml + ${checkstyle.location}/checkstyle-header.txt checkstyle.build.directory=${project.build.directory} checkstyle.suppressions.file=${checkstyle.suppressions.file} diff --git a/etc/checkstyle/checkstyle-header.txt b/etc/checkstyle/checkstyle-header.txt new file mode 100644 index 00000000..39429ee6 --- /dev/null +++ b/etc/checkstyle/checkstyle-header.txt @@ -0,0 +1,17 @@ +^\Q/*\E$ +^\Q * Copyright \E20\d\d\-20\d\d\Q 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 * https://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$ +^$ +^.*$ diff --git a/etc/checkstyle/checkstyle-suppressions.xml b/etc/checkstyle/checkstyle-suppressions.xml new file mode 100644 index 00000000..b7204284 --- /dev/null +++ b/etc/checkstyle/checkstyle-suppressions.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/etc/checkstyle/checkstyle.xml b/etc/checkstyle/checkstyle.xml new file mode 100644 index 00000000..c3e1de40 --- /dev/null +++ b/etc/checkstyle/checkstyle.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/etc/checkstyle/nohttp-checkstyle.xml b/etc/checkstyle/nohttp-checkstyle.xml new file mode 100644 index 00000000..4e21a0bd --- /dev/null +++ b/etc/checkstyle/nohttp-checkstyle.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/functions/pom.xml b/functions/pom.xml index 94c3cc2f..dbceaf2d 100644 --- a/functions/pom.xml +++ b/functions/pom.xml @@ -24,14 +24,15 @@ true true 8.29 + ../etc/checkstyle - https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/master/spring-cloud-build-tools/src/checkstyle/checkstyle-suppressions.xml + ${checkstyle.location}/checkstyle-suppressions.xml - https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/master/spring-cloud-build-tools/src/checkstyle/nohttp-checkstyle.xml + ${checkstyle.location}/nohttp-checkstyle.xml - https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/master/spring-cloud-build-tools/src/checkstyle/checkstyle-suppressions.xml + ${checkstyle.location}/checkstyle-suppressions.xml 0.0.2.RELEASE true @@ -179,8 +180,8 @@ true ${disable.checks} - checkstyle.xml - checkstyle-header.txt + ${checkstyle.location}/checkstyle.xml + ${checkstyle.location}/checkstyle-header.txt checkstyle.build.directory=${project.build.directory} checkstyle.suppressions.file=${checkstyle.suppressions.file}