From 83527af4d3cbed383ac41284cfc4732ff6e75a3a Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 22 Dec 2017 19:17:58 +0000 Subject: [PATCH 01/20] Initial commit with checkstyle tile --- .gitignore | 36 +++++++++++++++ LICENSE.txt | 0 example/LICENSE.txt | 20 ++++++++ example/pom.xml | 32 +++++++++++++ .../java/net/kemitix/tiles/example/Main.java | 40 ++++++++++++++++ .../kemitix/tiles/example/package-info.java | 22 +++++++++ pom.xml | 21 +++++++++ tiles/checkstyle/pom.xml | 28 +++++++++++ tiles/checkstyle/tile.xml | 46 +++++++++++++++++++ tiles/pom.xml | 17 +++++++ 10 files changed, 262 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE.txt create mode 100644 example/LICENSE.txt create mode 100644 example/pom.xml create mode 100644 example/src/main/java/net/kemitix/tiles/example/Main.java create mode 100644 example/src/main/java/net/kemitix/tiles/example/package-info.java create mode 100644 pom.xml create mode 100644 tiles/checkstyle/pom.xml create mode 100644 tiles/checkstyle/tile.xml create mode 100644 tiles/pom.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e68e0db --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +# Package Files # +*.jar +*.war +*.ear +*.zip + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +# maven build outputs +target/ + +# netbeans legacy +nbproject/ +nbactions.xml + +# eclipse legacy +.project + +# intellij +.idea/ +*.iml + +# Spring +spring.log +logs/ +/application.properties +/bootstrap.properties + +# Composer-style +vendor + +# Git and temp files +*.orig +*.patch +*~ diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..e69de29 diff --git a/example/LICENSE.txt b/example/LICENSE.txt new file mode 100644 index 0000000..0ac5ca6 --- /dev/null +++ b/example/LICENSE.txt @@ -0,0 +1,20 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2017 Paul Campbell + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software + * and associated documentation files (the "Software"), to deal in the Software without restriction, + * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all copies + * or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, + * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE + * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ diff --git a/example/pom.xml b/example/pom.xml new file mode 100644 index 0000000..2c723d5 --- /dev/null +++ b/example/pom.xml @@ -0,0 +1,32 @@ + + + + net.kemitix.tiles + 0.1.0-SNAPSHOT + 4.0.0 + + example + + + 2.10 + + + + + + io.repaint.maven + tiles-maven-plugin + ${tiles-maven-plugin.version} + true + + + net.kemitix.tiles:quality-checkstyle-tile:${project.version} + + + + + + + diff --git a/example/src/main/java/net/kemitix/tiles/example/Main.java b/example/src/main/java/net/kemitix/tiles/example/Main.java new file mode 100644 index 0000000..a351d17 --- /dev/null +++ b/example/src/main/java/net/kemitix/tiles/example/Main.java @@ -0,0 +1,40 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2017 Paul Campbell + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software + * and associated documentation files (the "Software"), to deal in the Software without restriction, + * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all copies + * or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, + * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE + * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + +package net.kemitix.tiles.example; + +/** + * Main class. + * + * @author Paul Campbell (pcampbell@kemitix.net) + */ +@SuppressWarnings("hideutilityclassconstructor") +public class Main { + + /** + * Main method. + * + * @param args command line args + */ + public static void main(final String[] args) { + System.out.println("Hello, World!"); + } +} diff --git a/example/src/main/java/net/kemitix/tiles/example/package-info.java b/example/src/main/java/net/kemitix/tiles/example/package-info.java new file mode 100644 index 0000000..20bfa04 --- /dev/null +++ b/example/src/main/java/net/kemitix/tiles/example/package-info.java @@ -0,0 +1,22 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2017 Paul Campbell + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software + * and associated documentation files (the "Software"), to deal in the Software without restriction, + * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all copies + * or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, + * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE + * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + +package net.kemitix.tiles.example; diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..ef98da9 --- /dev/null +++ b/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + net.kemitix.tiles + kemitix-quality-maven-tiles + 0.1.0-SNAPSHOT + + 2.10 + + + pom + + + tiles + example + + + diff --git a/tiles/checkstyle/pom.xml b/tiles/checkstyle/pom.xml new file mode 100644 index 0000000..e88b156 --- /dev/null +++ b/tiles/checkstyle/pom.xml @@ -0,0 +1,28 @@ + + + + net.kemitix.tiles + 0.1.0-SNAPSHOT + 4.0.0 + + quality-checkstyle-tile + tile + + + 2.10 + + + + + + io.repaint.maven + tiles-maven-plugin + ${tiles-maven-plugin.version} + true + + + + + diff --git a/tiles/checkstyle/tile.xml b/tiles/checkstyle/tile.xml new file mode 100644 index 0000000..70126f8 --- /dev/null +++ b/tiles/checkstyle/tile.xml @@ -0,0 +1,46 @@ + + + 2.17 + 8.0 + 1.24.1 + 3.3.0 + 5-complexity + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${maven-checkstyle-plugin.version} + + + com.puppycrawl.tools + checkstyle + ${checkstyle.version} + + + com.github.sevntu-checkstyle + sevntu-checkstyle-maven-plugin + ${sevntu.version} + + + net.kemitix + kemitix-checkstyle-ruleset + ${ruleset.version} + + + + net/kemitix/checkstyle-${ruleset.level}.xml + + + + verify + + check + + + + + + + diff --git a/tiles/pom.xml b/tiles/pom.xml new file mode 100644 index 0000000..8c25770 --- /dev/null +++ b/tiles/pom.xml @@ -0,0 +1,17 @@ + + + + net.kemitix.tiles + 0.1.0-SNAPSHOT + 4.0.0 + + tiles-parent + pom + + + checkstyle + + + From 3c94d6b3e41117c84fc4c277b6f8d68403b6b76f Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 22 Dec 2017 19:59:49 +0000 Subject: [PATCH 02/20] Remove example - makes build more complex than needed --- example/LICENSE.txt | 20 ---------- example/pom.xml | 32 --------------- .../java/net/kemitix/tiles/example/Main.java | 40 ------------------- .../kemitix/tiles/example/package-info.java | 22 ---------- pom.xml | 1 - 5 files changed, 115 deletions(-) delete mode 100644 example/LICENSE.txt delete mode 100644 example/pom.xml delete mode 100644 example/src/main/java/net/kemitix/tiles/example/Main.java delete mode 100644 example/src/main/java/net/kemitix/tiles/example/package-info.java diff --git a/example/LICENSE.txt b/example/LICENSE.txt deleted file mode 100644 index 0ac5ca6..0000000 --- a/example/LICENSE.txt +++ /dev/null @@ -1,20 +0,0 @@ -/** - * The MIT License (MIT) - * - * Copyright (c) 2017 Paul Campbell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of this software - * and associated documentation files (the "Software"), to deal in the Software without restriction, - * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all copies - * or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, - * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE - * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, - * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ diff --git a/example/pom.xml b/example/pom.xml deleted file mode 100644 index 2c723d5..0000000 --- a/example/pom.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - net.kemitix.tiles - 0.1.0-SNAPSHOT - 4.0.0 - - example - - - 2.10 - - - - - - io.repaint.maven - tiles-maven-plugin - ${tiles-maven-plugin.version} - true - - - net.kemitix.tiles:quality-checkstyle-tile:${project.version} - - - - - - - diff --git a/example/src/main/java/net/kemitix/tiles/example/Main.java b/example/src/main/java/net/kemitix/tiles/example/Main.java deleted file mode 100644 index a351d17..0000000 --- a/example/src/main/java/net/kemitix/tiles/example/Main.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * The MIT License (MIT) - * - * Copyright (c) 2017 Paul Campbell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of this software - * and associated documentation files (the "Software"), to deal in the Software without restriction, - * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all copies - * or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, - * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE - * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, - * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ - -package net.kemitix.tiles.example; - -/** - * Main class. - * - * @author Paul Campbell (pcampbell@kemitix.net) - */ -@SuppressWarnings("hideutilityclassconstructor") -public class Main { - - /** - * Main method. - * - * @param args command line args - */ - public static void main(final String[] args) { - System.out.println("Hello, World!"); - } -} diff --git a/example/src/main/java/net/kemitix/tiles/example/package-info.java b/example/src/main/java/net/kemitix/tiles/example/package-info.java deleted file mode 100644 index 20bfa04..0000000 --- a/example/src/main/java/net/kemitix/tiles/example/package-info.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - * The MIT License (MIT) - * - * Copyright (c) 2017 Paul Campbell - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of this software - * and associated documentation files (the "Software"), to deal in the Software without restriction, - * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all copies - * or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, - * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE - * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, - * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ - -package net.kemitix.tiles.example; diff --git a/pom.xml b/pom.xml index ef98da9..b57962b 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,6 @@ tiles - example From 7649557324a7876f126d33d4fa6ab0077bbf9f03 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 22 Dec 2017 20:00:53 +0000 Subject: [PATCH 03/20] Rename artifacts --- pom.xml | 2 +- tiles/checkstyle/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index b57962b..29561eb 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 net.kemitix.tiles - kemitix-quality-maven-tiles + kemitix-maven-tiles 0.1.0-SNAPSHOT 2.10 diff --git a/tiles/checkstyle/pom.xml b/tiles/checkstyle/pom.xml index e88b156..df5c029 100644 --- a/tiles/checkstyle/pom.xml +++ b/tiles/checkstyle/pom.xml @@ -7,7 +7,7 @@ 0.1.0-SNAPSHOT 4.0.0 - quality-checkstyle-tile + checkstyle-tile tile From 257a7a67155d26caede6aaed4d2b07752fde21ba Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 22 Dec 2017 20:11:03 +0000 Subject: [PATCH 04/20] Add compiler tile --- {tiles/checkstyle => checkstyle}/pom.xml | 12 +++++------ {tiles/checkstyle => checkstyle}/tile.xml | 0 compiler/pom.xml | 26 +++++++++++++++++++++++ compiler/tile.xml | 26 +++++++++++++++++++++++ pom.xml | 7 +++--- tiles/pom.xml | 17 --------------- 6 files changed, 61 insertions(+), 27 deletions(-) rename {tiles/checkstyle => checkstyle}/pom.xml (79%) rename {tiles/checkstyle => checkstyle}/tile.xml (100%) create mode 100644 compiler/pom.xml create mode 100644 compiler/tile.xml delete mode 100644 tiles/pom.xml diff --git a/tiles/checkstyle/pom.xml b/checkstyle/pom.xml similarity index 79% rename from tiles/checkstyle/pom.xml rename to checkstyle/pom.xml index df5c029..469f402 100644 --- a/tiles/checkstyle/pom.xml +++ b/checkstyle/pom.xml @@ -2,18 +2,16 @@ - - net.kemitix.tiles - 0.1.0-SNAPSHOT + + kemitix-maven-tiles + net.kemitix.tiles + 0.1.0-SNAPSHOT + 4.0.0 checkstyle-tile tile - - 2.10 - - diff --git a/tiles/checkstyle/tile.xml b/checkstyle/tile.xml similarity index 100% rename from tiles/checkstyle/tile.xml rename to checkstyle/tile.xml diff --git a/compiler/pom.xml b/compiler/pom.xml new file mode 100644 index 0000000..204e7a4 --- /dev/null +++ b/compiler/pom.xml @@ -0,0 +1,26 @@ + + + + kemitix-maven-tiles + net.kemitix.tiles + 0.1.0-SNAPSHOT + + 4.0.0 + tile + + compiler-tile + + + + + io.repaint.maven + tiles-maven-plugin + ${tiles-maven-plugin.version} + true + + + + + diff --git a/compiler/tile.xml b/compiler/tile.xml new file mode 100644 index 0000000..f3222f1 --- /dev/null +++ b/compiler/tile.xml @@ -0,0 +1,26 @@ + + + 1.8 + 3.7.0 + UTF-8 + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven-compiler-plugin.version} + + + -Xlint:unchecked + + true + true + ${java.version} + ${java.version} + ${project.build.sourceEncoding} + + + + + diff --git a/pom.xml b/pom.xml index 29561eb..9b710be 100644 --- a/pom.xml +++ b/pom.xml @@ -7,14 +7,15 @@ net.kemitix.tiles kemitix-maven-tiles 0.1.0-SNAPSHOT + + pom 2.10 - pom - - tiles + checkstyle + compiler diff --git a/tiles/pom.xml b/tiles/pom.xml deleted file mode 100644 index 8c25770..0000000 --- a/tiles/pom.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - net.kemitix.tiles - 0.1.0-SNAPSHOT - 4.0.0 - - tiles-parent - pom - - - checkstyle - - - From e11d3c7eaed67644cef6285ca186f117e9ca4481 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 22 Dec 2017 20:15:11 +0000 Subject: [PATCH 05/20] Add tiles-parent --- checkstyle/pom.xml | 14 ++------------ compiler/pom.xml | 16 +++------------- pom.xml | 4 +--- tiles-parent/pom.xml | 29 +++++++++++++++++++++++++++++ 4 files changed, 35 insertions(+), 28 deletions(-) create mode 100644 tiles-parent/pom.xml diff --git a/checkstyle/pom.xml b/checkstyle/pom.xml index 469f402..9313f31 100644 --- a/checkstyle/pom.xml +++ b/checkstyle/pom.xml @@ -3,24 +3,14 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - kemitix-maven-tiles + tiles-parent net.kemitix.tiles 0.1.0-SNAPSHOT + ../tiles-parent/pom.xml 4.0.0 checkstyle-tile tile - - - - io.repaint.maven - tiles-maven-plugin - ${tiles-maven-plugin.version} - true - - - - diff --git a/compiler/pom.xml b/compiler/pom.xml index 204e7a4..c0d13f9 100644 --- a/compiler/pom.xml +++ b/compiler/pom.xml @@ -3,24 +3,14 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - kemitix-maven-tiles + tiles-parent net.kemitix.tiles 0.1.0-SNAPSHOT + ../tiles-parent/pom.xml 4.0.0 - tile compiler-tile - - - - - io.repaint.maven - tiles-maven-plugin - ${tiles-maven-plugin.version} - true - - - + tile diff --git a/pom.xml b/pom.xml index 9b710be..2af9c11 100644 --- a/pom.xml +++ b/pom.xml @@ -9,13 +9,11 @@ 0.1.0-SNAPSHOT pom - - 2.10 - checkstyle compiler + tiles-parent diff --git a/tiles-parent/pom.xml b/tiles-parent/pom.xml new file mode 100644 index 0000000..c39ebaf --- /dev/null +++ b/tiles-parent/pom.xml @@ -0,0 +1,29 @@ + + + + kemitix-maven-tiles + net.kemitix.tiles + 0.1.0-SNAPSHOT + + 4.0.0 + + tiles-parent + pom + + + 2.10 + + + + + + io.repaint.maven + tiles-maven-plugin + ${tiles-maven-plugin.version} + true + + + + From 954fe728dcc4381bb4493b6feccdbc61a423a674 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 22 Dec 2017 20:36:26 +0000 Subject: [PATCH 06/20] Add README.md --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..f88a4df --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# Kemitix Maven Tiles + +## Usage + +```xml + + 2.10 + 0.1.0-SNAPSHOT + + + + + io.repaint.maven + tiles-maven-plugin + ${tiles-maven-plugin.version} + true + + + net.kemitix.tiles:compiler-tile:${kemitix-tiles.version} + net.kemitix.tiles:checkstyle-tile:${kemitix-tiles.version} + + + + + +``` From 5c49c2ce1d429f1d1a7a462c0140f2942372693d Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 22 Dec 2017 20:47:35 +0000 Subject: [PATCH 07/20] Add release-tile --- README.md | 3 ++ pom.xml | 1 + release/pom.xml | 16 ++++++++++ release/tile.xml | 83 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 103 insertions(+) create mode 100644 release/pom.xml create mode 100644 release/tile.xml diff --git a/README.md b/README.md index f88a4df..2866f0b 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,12 @@ net.kemitix.tiles:compiler-tile:${kemitix-tiles.version} net.kemitix.tiles:checkstyle-tile:${kemitix-tiles.version} + net.kemitix.tiles:release-tile:${kemitix-tiles.version} ``` + +Enabling the plugins in the `release-tile` requires the `release` profile to be active. diff --git a/pom.xml b/pom.xml index 2af9c11..e67cfaf 100644 --- a/pom.xml +++ b/pom.xml @@ -14,6 +14,7 @@ checkstyle compiler tiles-parent + release diff --git a/release/pom.xml b/release/pom.xml new file mode 100644 index 0000000..6da424f --- /dev/null +++ b/release/pom.xml @@ -0,0 +1,16 @@ + + + + tiles-parent + net.kemitix.tiles + 0.1.0-SNAPSHOT + ../tiles-parent/pom.xml + + 4.0.0 + + release-tile + tile + + diff --git a/release/tile.xml b/release/tile.xml new file mode 100644 index 0000000..dc28eba --- /dev/null +++ b/release/tile.xml @@ -0,0 +1,83 @@ + + + 3.0.0-M1 + 3.0.1 + 1.6 + 2.8.2 + + + + release + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven-javadoc-plugin.version} + + + attach-javadocs + package + + jar + + + + + + + org.apache.maven.plugins + maven-source-plugin + ${maven-source-plugin.version} + + + attach-sources + package + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + ${maven-gpg-plugin.version} + + ${gpg.passphrase} + + + + sign-artifacts + package + + sign + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + ${maven-deploy-plugin.version} + + + + + + + sonatype-nexus-snapshots + Sonatype Nexus Snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + + + sonatype-nexus-staging + Nexus Release Repository + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + From fcb8dada3301a7170b57c36fef2d61b5e720a1dd Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 23 Dec 2017 15:17:32 +0000 Subject: [PATCH 08/20] Add digraph-tile --- README.md | 45 ++++++++++++++++++++++++--------------------- digraph/pom.xml | 16 ++++++++++++++++ digraph/tile.xml | 26 ++++++++++++++++++++++++++ pom.xml | 3 ++- 4 files changed, 68 insertions(+), 22 deletions(-) create mode 100644 digraph/pom.xml create mode 100644 digraph/tile.xml diff --git a/README.md b/README.md index 2866f0b..8891df9 100644 --- a/README.md +++ b/README.md @@ -3,27 +3,30 @@ ## Usage ```xml - - 2.10 - 0.1.0-SNAPSHOT - - - - - io.repaint.maven - tiles-maven-plugin - ${tiles-maven-plugin.version} - true - - - net.kemitix.tiles:compiler-tile:${kemitix-tiles.version} - net.kemitix.tiles:checkstyle-tile:${kemitix-tiles.version} - net.kemitix.tiles:release-tile:${kemitix-tiles.version} - - - - - + + + 2.10 + 0.1.0-SNAPSHOT + + + + + io.repaint.maven + tiles-maven-plugin + ${tiles-maven-plugin.version} + true + + + net.kemitix.tiles:compiler-tile:${kemitix-tiles.version} + net.kemitix.tiles:checkstyle-tile:${kemitix-tiles.version} + net.kemitix.tiles:digraph-tile:${kemitix-tiles.version} + net.kemitix.tiles:release-tile:${kemitix-tiles.version} + + + + + + ``` Enabling the plugins in the `release-tile` requires the `release` profile to be active. diff --git a/digraph/pom.xml b/digraph/pom.xml new file mode 100644 index 0000000..3397798 --- /dev/null +++ b/digraph/pom.xml @@ -0,0 +1,16 @@ + + + + tiles-parent + net.kemitix.tiles + 0.1.0-SNAPSHOT + ../tiles-parent/pom.xml + + 4.0.0 + + digraph-tile + tile + + diff --git a/digraph/tile.xml b/digraph/tile.xml new file mode 100644 index 0000000..df398fd --- /dev/null +++ b/digraph/tile.xml @@ -0,0 +1,26 @@ + + + 0.9.0 + net.kemitix + + + + + net.kemitix + digraph-dependency-maven-plugin + ${digraph-dependency.version} + + ${digraph-dependency.basePackage} + + + + verify + + digraph + + + + + + + diff --git a/pom.xml b/pom.xml index e67cfaf..c8e4bdb 100644 --- a/pom.xml +++ b/pom.xml @@ -11,10 +11,11 @@ pom + tiles-parent checkstyle compiler - tiles-parent release + digraph From 17ed2afea8a59584736212683d51eadde72d6bbb Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 23 Dec 2017 15:24:21 +0000 Subject: [PATCH 09/20] Add enforcer-tile --- README.md | 1 + enforcer/pom.xml | 16 ++++++++++++++++ enforcer/tile.xml | 36 ++++++++++++++++++++++++++++++++++++ pom.xml | 1 + 4 files changed, 54 insertions(+) create mode 100644 enforcer/pom.xml create mode 100644 enforcer/tile.xml diff --git a/README.md b/README.md index 8891df9..3122ca6 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ true + net.kemitix.tiles:enforcer-tile:${kemitix-tiles.version} net.kemitix.tiles:compiler-tile:${kemitix-tiles.version} net.kemitix.tiles:checkstyle-tile:${kemitix-tiles.version} net.kemitix.tiles:digraph-tile:${kemitix-tiles.version} diff --git a/enforcer/pom.xml b/enforcer/pom.xml new file mode 100644 index 0000000..969c3ba --- /dev/null +++ b/enforcer/pom.xml @@ -0,0 +1,16 @@ + + + + tiles-parent + net.kemitix.tiles + 0.1.0-SNAPSHOT + ../tiles-parent/pom.xml + + 4.0.0 + + enforcer-tile + tile + + diff --git a/enforcer/tile.xml b/enforcer/tile.xml new file mode 100644 index 0000000..6cf8764 --- /dev/null +++ b/enforcer/tile.xml @@ -0,0 +1,36 @@ + + + 1.4.1 + 3.0.4 + 1.8 + + + + + org.apache.maven.plugins + maven-enforcer-plugin + ${maven-enforcer-plugin.version} + + + enforce-maven + validate + + display-info + enforce + + + + + + + ${required-maven.version} + + + ${java.version} + + + + + + + diff --git a/pom.xml b/pom.xml index c8e4bdb..6b7b968 100644 --- a/pom.xml +++ b/pom.xml @@ -16,6 +16,7 @@ compiler release digraph + enforcer From e929f162f054025adae1ff62d37dbe0b09a662bf Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 23 Dec 2017 15:29:51 +0000 Subject: [PATCH 10/20] Add testing-tile --- README.md | 1 + pom.xml | 1 + testing/pom.xml | 16 ++++++++++++++++ testing/tile.xml | 43 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 testing/pom.xml create mode 100644 testing/tile.xml diff --git a/README.md b/README.md index 3122ca6..fe9277c 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ net.kemitix.tiles:compiler-tile:${kemitix-tiles.version} net.kemitix.tiles:checkstyle-tile:${kemitix-tiles.version} net.kemitix.tiles:digraph-tile:${kemitix-tiles.version} + net.kemitix.tiles:testing-tile:${kemitix-tiles.version} net.kemitix.tiles:release-tile:${kemitix-tiles.version} diff --git a/pom.xml b/pom.xml index 6b7b968..eb5aad9 100644 --- a/pom.xml +++ b/pom.xml @@ -17,6 +17,7 @@ release digraph enforcer + testing diff --git a/testing/pom.xml b/testing/pom.xml new file mode 100644 index 0000000..686bd33 --- /dev/null +++ b/testing/pom.xml @@ -0,0 +1,16 @@ + + + + tiles-parent + net.kemitix.tiles + 0.1.0-SNAPSHOT + ../tiles-parent/pom.xml + + 4.0.0 + + testing-tile + tile + + diff --git a/testing/tile.xml b/testing/tile.xml new file mode 100644 index 0000000..08b62b2 --- /dev/null +++ b/testing/tile.xml @@ -0,0 +1,43 @@ + + + 2.20.1 + 2.20.1 + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + + org.apache.maven.plugins + maven-failsafe-plugin + ${maven-failsafe-plugin.version} + + + integration-test + + integration-test + + + + verify + + verify + + + + + + + + + + org.apache.maven.plugins + maven-surefire-report-plugin + ${maven-surefire-plugin.version} + + + + From b1c836d7130ef634c5acb53cacd01a8e174d058f Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 23 Dec 2017 17:13:28 +0000 Subject: [PATCH 11/20] Add coverage-tile --- README.md | 1 + coverage/pom.xml | 16 +++++++++ coverage/tile.xml | 90 +++++++++++++++++++++++++++++++++++++++++++++++ pom.xml | 1 + 4 files changed, 108 insertions(+) create mode 100644 coverage/pom.xml create mode 100644 coverage/tile.xml diff --git a/README.md b/README.md index fe9277c..607bbce 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ net.kemitix.tiles:checkstyle-tile:${kemitix-tiles.version} net.kemitix.tiles:digraph-tile:${kemitix-tiles.version} net.kemitix.tiles:testing-tile:${kemitix-tiles.version} + net.kemitix.tiles:coverage-tile:${kemitix-tiles.version} net.kemitix.tiles:release-tile:${kemitix-tiles.version} diff --git a/coverage/pom.xml b/coverage/pom.xml new file mode 100644 index 0000000..7adea36 --- /dev/null +++ b/coverage/pom.xml @@ -0,0 +1,16 @@ + + + + tiles-parent + net.kemitix.tiles + 0.1.0-SNAPSHOT + ../tiles-parent/pom.xml + + 4.0.0 + + coverage-tile + tile + + diff --git a/coverage/tile.xml b/coverage/tile.xml new file mode 100644 index 0000000..9a62b10 --- /dev/null +++ b/coverage/tile.xml @@ -0,0 +1,90 @@ + + + 0.7.9 + 4.3.0 + 2.5 + 0.50 + 0.80 + 0 + + + + + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + + prepare-agent + + + + report + prepare-package + + report + + + + default-check + + check + + + + + + + CLASS + + *Test + *IT + *Main + *Application + *Configuration + *Immutable* + + + + LINE + COVEREDRATIO + ${jacoco-class-line-covered-ratio} + + + INSTRUCTION + COVEREDRATIO + ${jacoco-class-instruction-covered-ratio} + + + CLASS + MISSEDCOUNT + ${jacoco-class-missed-count-maximum} + + + + + + + + org.eluder.coveralls + coveralls-maven-plugin + ${coveralls-maven-plugin.version} + + + + + + + org.apache.maven.plugins + maven-jxr-plugin + ${maven-jxr-plugin.version} + + + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + + diff --git a/pom.xml b/pom.xml index eb5aad9..159ec4b 100644 --- a/pom.xml +++ b/pom.xml @@ -17,6 +17,7 @@ release digraph enforcer + coverage testing From 979acdfab19cc588add811afd84635c8c990f3d9 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 23 Dec 2017 17:22:05 +0000 Subject: [PATCH 12/20] FIXUP coverage --- coverage/tile.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/coverage/tile.xml b/coverage/tile.xml index 9a62b10..13c8f79 100644 --- a/coverage/tile.xml +++ b/coverage/tile.xml @@ -1,5 +1,6 @@ + UTF-8 0.7.9 4.3.0 2.5 From aa6b80eacdfdcf9ee07668d78ce75be51900bcb7 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 23 Dec 2017 17:22:27 +0000 Subject: [PATCH 13/20] FIXUP testing --- testing/tile.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/tile.xml b/testing/tile.xml index 08b62b2..4e139d2 100644 --- a/testing/tile.xml +++ b/testing/tile.xml @@ -1,5 +1,6 @@ + UTF-8 2.20.1 2.20.1 From 8f87de96a20cb9485cabe30e35df730f19c07fbb Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 23 Dec 2017 17:26:28 +0000 Subject: [PATCH 14/20] Add maven-plugins-tile --- README.md | 1 + maven-plugins/pom.xml | 16 +++++++++++++ maven-plugins/tile.xml | 51 ++++++++++++++++++++++++++++++++++++++++++ pom.xml | 1 + 4 files changed, 69 insertions(+) create mode 100644 maven-plugins/pom.xml create mode 100644 maven-plugins/tile.xml diff --git a/README.md b/README.md index 607bbce..42b4de5 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ true + net.kemitix.tiles:maven-plugins-tile:${kemitix-tiles.version} net.kemitix.tiles:enforcer-tile:${kemitix-tiles.version} net.kemitix.tiles:compiler-tile:${kemitix-tiles.version} net.kemitix.tiles:checkstyle-tile:${kemitix-tiles.version} diff --git a/maven-plugins/pom.xml b/maven-plugins/pom.xml new file mode 100644 index 0000000..d02012e --- /dev/null +++ b/maven-plugins/pom.xml @@ -0,0 +1,16 @@ + + + + tiles-parent + net.kemitix.tiles + 0.1.0-SNAPSHOT + ../tiles-parent/pom.xml + + 4.0.0 + + maven-plugins-tile + tile + + diff --git a/maven-plugins/tile.xml b/maven-plugins/tile.xml new file mode 100644 index 0000000..6550a9c --- /dev/null +++ b/maven-plugins/tile.xml @@ -0,0 +1,51 @@ + + + UTF-8 + 3.0.0 + 2.5.2 + 3.6 + 2.4 + + + + + org.apache.maven.plugins + maven-clean-plugin + ${maven-clean-plugin.version} + + + org.apache.maven.plugins + maven-install-plugin + ${maven-install-plugin.version} + + + org.apache.maven.plugins + maven-site-plugin + ${maven-site-plugin.version} + + + org.codehaus.mojo + versions-maven-plugin + ${versions.version} + + + + + + + org.codehaus.mojo + versions-maven-plugin + ${versions.version} + + + + dependency-updates-report + plugin-updates-report + property-updates-report + + + + + + + diff --git a/pom.xml b/pom.xml index 159ec4b..3dca988 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,7 @@ enforcer coverage testing + maven-plugins From e78b18cfc1882714b72fe0196d8b66d4137467bb Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 23 Dec 2017 17:32:35 +0000 Subject: [PATCH 15/20] Add pitest-tile --- README.md | 1 + pitest/pom.xml | 16 +++++++++++++ pitest/tile.xml | 64 +++++++++++++++++++++++++++++++++++++++++++++++++ pom.xml | 1 + 4 files changed, 82 insertions(+) create mode 100644 pitest/pom.xml create mode 100644 pitest/tile.xml diff --git a/README.md b/README.md index 42b4de5..05a567b 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ net.kemitix.tiles:digraph-tile:${kemitix-tiles.version} net.kemitix.tiles:testing-tile:${kemitix-tiles.version} net.kemitix.tiles:coverage-tile:${kemitix-tiles.version} + net.kemitix.tiles:pitest-tile:${kemitix-tiles.version} net.kemitix.tiles:release-tile:${kemitix-tiles.version} diff --git a/pitest/pom.xml b/pitest/pom.xml new file mode 100644 index 0000000..78adf33 --- /dev/null +++ b/pitest/pom.xml @@ -0,0 +1,16 @@ + + + + tiles-parent + net.kemitix.tiles + 0.1.0-SNAPSHOT + ../tiles-parent/pom.xml + + 4.0.0 + + pitest-tile + tile + + diff --git a/pitest/tile.xml b/pitest/tile.xml new file mode 100644 index 0000000..0a9fd46 --- /dev/null +++ b/pitest/tile.xml @@ -0,0 +1,64 @@ + + + 1.2 + 1.2.0 + 0 + 0 + false + true + + + + + org.pitest + highwheel-maven + ${highwheel-maven.version} + + + verify + + analyse + + + + + + org.pitest + pitest-maven + ${pitest.version} + + + verify + + mutationCoverage + + + + + ${pitest.skip} + false + *.Immutable* + ${pitest.coverage} + ${pitest.mutation} + ${pitest.failWhenNoMutations} + + + + + + + + org.pitest + pitest-maven + ${pitest.version} + + + + report + + + + + + + diff --git a/pom.xml b/pom.xml index 3dca988..d49440c 100644 --- a/pom.xml +++ b/pom.xml @@ -20,6 +20,7 @@ coverage testing maven-plugins + pitest From 44b22f114dc9710d07683d43fe67cc19a55becdb Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 23 Dec 2017 17:36:15 +0000 Subject: [PATCH 16/20] Add huntbugs-tile --- README.md | 1 + huntbugs/pom.xml | 16 ++++++++++++++++ huntbugs/tile.xml | 22 ++++++++++++++++++++++ pom.xml | 1 + 4 files changed, 40 insertions(+) create mode 100644 huntbugs/pom.xml create mode 100644 huntbugs/tile.xml diff --git a/README.md b/README.md index 05a567b..15c734c 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ net.kemitix.tiles:enforcer-tile:${kemitix-tiles.version} net.kemitix.tiles:compiler-tile:${kemitix-tiles.version} net.kemitix.tiles:checkstyle-tile:${kemitix-tiles.version} + net.kemitix.tiles:huntbugs-tile:${kemitix-tiles.version} net.kemitix.tiles:digraph-tile:${kemitix-tiles.version} net.kemitix.tiles:testing-tile:${kemitix-tiles.version} net.kemitix.tiles:coverage-tile:${kemitix-tiles.version} diff --git a/huntbugs/pom.xml b/huntbugs/pom.xml new file mode 100644 index 0000000..43e8a39 --- /dev/null +++ b/huntbugs/pom.xml @@ -0,0 +1,16 @@ + + + + tiles-parent + net.kemitix.tiles + 0.1.0-SNAPSHOT + ../tiles-parent/pom.xml + + 4.0.0 + + huntbugs-tile + tile + + diff --git a/huntbugs/tile.xml b/huntbugs/tile.xml new file mode 100644 index 0000000..26c6c23 --- /dev/null +++ b/huntbugs/tile.xml @@ -0,0 +1,22 @@ + + + 0.0.11 + + + + + one.util + huntbugs-maven-plugin + ${huntbugs.version} + + + verify + + huntbugs + + + + + + + diff --git a/pom.xml b/pom.xml index d49440c..9e2afeb 100644 --- a/pom.xml +++ b/pom.xml @@ -21,6 +21,7 @@ testing maven-plugins pitest + huntbugs From f2fe36bcf454d7732612b0c2418ef04b39b3dadc Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 23 Dec 2017 17:39:48 +0000 Subject: [PATCH 17/20] Add pmd-tile --- README.md | 1 + pmd/pom.xml | 16 ++++++++++++++++ pmd/tile.xml | 42 ++++++++++++++++++++++++++++++++++++++++++ pom.xml | 1 + 4 files changed, 60 insertions(+) create mode 100644 pmd/pom.xml create mode 100644 pmd/tile.xml diff --git a/README.md b/README.md index 15c734c..6088c9d 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ net.kemitix.tiles:compiler-tile:${kemitix-tiles.version} net.kemitix.tiles:checkstyle-tile:${kemitix-tiles.version} net.kemitix.tiles:huntbugs-tile:${kemitix-tiles.version} + net.kemitix.tiles:pmd-tile:${kemitix-tiles.version} net.kemitix.tiles:digraph-tile:${kemitix-tiles.version} net.kemitix.tiles:testing-tile:${kemitix-tiles.version} net.kemitix.tiles:coverage-tile:${kemitix-tiles.version} diff --git a/pmd/pom.xml b/pmd/pom.xml new file mode 100644 index 0000000..0ec323d --- /dev/null +++ b/pmd/pom.xml @@ -0,0 +1,16 @@ + + + + tiles-parent + net.kemitix.tiles + 0.1.0-SNAPSHOT + ../tiles-parent/pom.xml + + 4.0.0 + + pmd-tile + tile + + diff --git a/pmd/tile.xml b/pmd/tile.xml new file mode 100644 index 0000000..febb5a9 --- /dev/null +++ b/pmd/tile.xml @@ -0,0 +1,42 @@ + + + 3.8 + + + + + org.apache.maven.plugins + maven-pmd-plugin + ${maven-pmd-plugin.version} + + + pmd + verify + + pmd + + + + cpd + verify + + cpd + + + + + + + + + + org.apache.maven.plugins + maven-pmd-plugin + ${maven-pmd-plugin.version} + + true + + + + + diff --git a/pom.xml b/pom.xml index 9e2afeb..ee552ba 100644 --- a/pom.xml +++ b/pom.xml @@ -22,6 +22,7 @@ maven-plugins pitest huntbugs + pmd From 6a41657e1dc33771382b0d4c3b14d61de3d7d8d4 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 24 Dec 2017 09:00:22 +0000 Subject: [PATCH 18/20] Move JXR to maven-tile and build source code pages during package phase Building the source code during packaging ensures that the source code pages are available for PMD when it generates cross-reference links. --- coverage/tile.xml | 6 ------ maven-plugins/tile.xml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/coverage/tile.xml b/coverage/tile.xml index 13c8f79..02e7c1d 100644 --- a/coverage/tile.xml +++ b/coverage/tile.xml @@ -3,7 +3,6 @@ UTF-8 0.7.9 4.3.0 - 2.5 0.50 0.80 0 @@ -76,11 +75,6 @@ - - org.apache.maven.plugins - maven-jxr-plugin - ${maven-jxr-plugin.version} - org.jacoco jacoco-maven-plugin diff --git a/maven-plugins/tile.xml b/maven-plugins/tile.xml index 6550a9c..1bcea92 100644 --- a/maven-plugins/tile.xml +++ b/maven-plugins/tile.xml @@ -4,6 +4,7 @@ 3.0.0 2.5.2 3.6 + 2.5 2.4 @@ -28,10 +29,28 @@ versions-maven-plugin ${versions.version} + + org.apache.maven.plugins + maven-jxr-plugin + ${maven-jxr-plugin.version} + + + package + + jxr + + + + + + org.apache.maven.plugins + maven-jxr-plugin + ${maven-jxr-plugin.version} + org.codehaus.mojo versions-maven-plugin From 232c350c2d5e9546cbd2a02e1b1f457e18ac7327 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 24 Dec 2017 22:45:58 +0000 Subject: [PATCH 19/20] Add all-tiles --- README.md | 4 ++++ all/pom.xml | 16 ++++++++++++++++ all/tile.xml | 27 +++++++++++++++++++++++++++ pom.xml | 1 + 4 files changed, 48 insertions(+) create mode 100644 all/pom.xml create mode 100644 all/tile.xml diff --git a/README.md b/README.md index 6088c9d..91b2fbc 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,10 @@ true + net.kemitix.tiles:all-tiles:${kemitix-tiles.version} + + + net.kemitix.tiles:maven-plugins-tile:${kemitix-tiles.version} net.kemitix.tiles:enforcer-tile:${kemitix-tiles.version} net.kemitix.tiles:compiler-tile:${kemitix-tiles.version} diff --git a/all/pom.xml b/all/pom.xml new file mode 100644 index 0000000..557eba1 --- /dev/null +++ b/all/pom.xml @@ -0,0 +1,16 @@ + + + + tiles-parent + net.kemitix.tiles + 0.1.0-SNAPSHOT + ../tiles-parent/pom.xml + + 4.0.0 + + all-tiles + tile + + diff --git a/all/tile.xml b/all/tile.xml new file mode 100644 index 0000000..e6296a5 --- /dev/null +++ b/all/tile.xml @@ -0,0 +1,27 @@ + + + + + io.repaint.maven + tiles-maven-plugin + ${tiles-maven-plugin.version} + true + + + net.kemitix.tiles:maven-plugins-tile:0.1.0-SNAPSHOT + net.kemitix.tiles:enforcer-tile:0.1.0-SNAPSHOT + net.kemitix.tiles:compiler-tile:0.1.0-SNAPSHOT + net.kemitix.tiles:checkstyle-tile:0.1.0-SNAPSHOT + net.kemitix.tiles:huntbugs-tile:0.1.0-SNAPSHOT + net.kemitix.tiles:pmd-tile:0.1.0-SNAPSHOT + net.kemitix.tiles:digraph-tile:0.1.0-SNAPSHOT + net.kemitix.tiles:testing-tile:0.1.0-SNAPSHOT + net.kemitix.tiles:coverage-tile:0.1.0-SNAPSHOT + net.kemitix.tiles:pitest-tile:0.1.0-SNAPSHOT + net.kemitix.tiles:release-tile:0.1.0-SNAPSHOT + + + + + + diff --git a/pom.xml b/pom.xml index ee552ba..221d48e 100644 --- a/pom.xml +++ b/pom.xml @@ -23,6 +23,7 @@ pitest huntbugs pmd + all From 48d577e5dcc72743730cb920d72830b24c01fa27 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 24 Dec 2017 22:46:40 +0000 Subject: [PATCH 20/20] Add maven-wrapper --- .mvn/wrapper/maven-wrapper.properties | 1 + mvnw | 227 ++++++++++++++++++++++++++ mvnw.cmd | 143 ++++++++++++++++ 3 files changed, 371 insertions(+) create mode 100755 .mvn/wrapper/maven-wrapper.properties create mode 100755 mvnw create mode 100755 mvnw.cmd diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties new file mode 100755 index 0000000..a447c9f --- /dev/null +++ b/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1 @@ +distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.2/apache-maven-3.5.2-bin.zip \ No newline at end of file diff --git a/mvnw b/mvnw new file mode 100755 index 0000000..e96ccd5 --- /dev/null +++ b/mvnw @@ -0,0 +1,227 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# 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. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven2 Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Mingw, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" + # TODO classpath? +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`which java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +if [ "$MVNW_VERBOSE" = true ]; then + echo $MAVEN_PROJECTBASEDIR +fi +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/mvnw.cmd b/mvnw.cmd new file mode 100755 index 0000000..019bd74 --- /dev/null +++ b/mvnw.cmd @@ -0,0 +1,143 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven2 Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" + +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%" == "on" pause + +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% + +exit /B %ERROR_CODE%