diff options
Diffstat (limited to 'buildstuffs')
5 files changed, 20 insertions, 63 deletions
diff --git a/buildstuffs/pom.xml b/buildstuffs/pom.xml index 79cb47f..72cd625 100644 --- a/buildstuffs/pom.xml +++ b/buildstuffs/pom.xml | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- | 2 | <!-- |
| 3 | SPDX-License-Identifier: AGPL-3.0-or-later | 3 | SPDX-License-Identifier: EUPL-1.2 |
| 4 | SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | 4 | SPDX-FileCopyrightText: 2025-2026 Uko Kokņevičs <perkontevs@gmail.com> |
| 5 | --> | 5 | --> |
| 6 | <project xmlns="http://maven.apache.org/POM/4.1.0" | 6 | <project xmlns="http://maven.apache.org/POM/4.1.0" |
| 7 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 7 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| @@ -10,7 +10,7 @@ | |||
| 10 | 10 | ||
| 11 | <groupId>lv.enes</groupId> | 11 | <groupId>lv.enes</groupId> |
| 12 | <artifactId>buildstuffs</artifactId> | 12 | <artifactId>buildstuffs</artifactId> |
| 13 | <version>1.0.0-SNAPSHOT</version> | 13 | <version>3-SNAPSHOT</version> |
| 14 | 14 | ||
| 15 | <licenses> | 15 | <licenses> |
| 16 | <license> | 16 | <license> |
| @@ -37,17 +37,17 @@ | |||
| 37 | <!-- There is a small duplication between this and the parent pom.xml to avoid dependency loops. --> | 37 | <!-- There is a small duplication between this and the parent pom.xml to avoid dependency loops. --> |
| 38 | 38 | ||
| 39 | <properties> | 39 | <properties> |
| 40 | <maven.version-range>[4.0.0-rc-4]</maven.version-range> | 40 | <maven.version-range>[4.0.0-rc-5]</maven.version-range> |
| 41 | 41 | ||
| 42 | <clean-plugin.version>3.5.0</clean-plugin.version> | 42 | <clean-plugin.version>3.5.0</clean-plugin.version> |
| 43 | <compiler-plugin.version>3.14.0</compiler-plugin.version> | 43 | <compiler-plugin.version>3.15.0</compiler-plugin.version> |
| 44 | <deploy-plugin.version>3.1.4</deploy-plugin.version> | 44 | <deploy-plugin.version>3.1.4</deploy-plugin.version> |
| 45 | <enforcer-plugin.version>3.6.1</enforcer-plugin.version> | 45 | <enforcer-plugin.version>3.6.2</enforcer-plugin.version> |
| 46 | <install-plugin.version>3.1.4</install-plugin.version> | 46 | <install-plugin.version>3.1.4</install-plugin.version> |
| 47 | <jar-plugin.version>3.4.2</jar-plugin.version> | 47 | <jar-plugin.version>3.5.0</jar-plugin.version> |
| 48 | <resources-plugin.version>3.3.1</resources-plugin.version> | 48 | <resources-plugin.version>3.4.0</resources-plugin.version> |
| 49 | <surefire-plugin.version>3.5.3</surefire-plugin.version> | 49 | <surefire-plugin.version>3.5.4</surefire-plugin.version> |
| 50 | <versions-plugin.version>2.18.0</versions-plugin.version> | 50 | <versions-plugin.version>2.21.0</versions-plugin.version> |
| 51 | </properties> | 51 | </properties> |
| 52 | 52 | ||
| 53 | <build> | 53 | <build> |
diff --git a/buildstuffs/src/main/resources/lv/enes/buildstuffs/checkstyle-suppressions.xml b/buildstuffs/src/main/resources/lv/enes/buildstuffs/checkstyle-suppressions.xml index dbf0b1f..2afc30d 100644 --- a/buildstuffs/src/main/resources/lv/enes/buildstuffs/checkstyle-suppressions.xml +++ b/buildstuffs/src/main/resources/lv/enes/buildstuffs/checkstyle-suppressions.xml | |||
| @@ -1,11 +1,12 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- | 2 | <!-- |
| 3 | SPDX-License-Identifier: AGPL-3.0-or-later | 3 | SPDX-License-Identifier: EUPL-1.2 |
| 4 | SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | 4 | SPDX-FileCopyrightText: 2025-2026 Uko Kokņevičs <perkontevs@gmail.com> |
| 5 | --> | 5 | --> |
| 6 | <!DOCTYPE suppressions PUBLIC | 6 | <!DOCTYPE suppressions PUBLIC |
| 7 | "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" | 7 | "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" |
| 8 | "https://checkstyle.org/dtds/suppressions_1_2.dtd"> | 8 | "https://checkstyle.org/dtds/suppressions_1_2.dtd"> |
| 9 | <suppressions> | 9 | <suppressions> |
| 10 | <suppress files="[/\\]target[/\\]generated-sources[/\\]" checks=".*"/> | 10 | <suppress files="[/\\]target[/\\]generated-sources[/\\]" checks=".*"/> |
| 11 | <suppress files="[/\\]it-.*[/\\]archetype.properties" checks=".*"/> | ||
| 11 | </suppressions> | 12 | </suppressions> |
diff --git a/buildstuffs/src/main/resources/lv/enes/buildstuffs/checkstyle.xml b/buildstuffs/src/main/resources/lv/enes/buildstuffs/checkstyle.xml index 6680d5d..59c240f 100644 --- a/buildstuffs/src/main/resources/lv/enes/buildstuffs/checkstyle.xml +++ b/buildstuffs/src/main/resources/lv/enes/buildstuffs/checkstyle.xml | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <?xml version="1.0"?> | 1 | <?xml version="1.0"?> |
| 2 | <!-- | 2 | <!-- |
| 3 | SPDX-License-Identifier: AGPL-3.0-or-later | 3 | SPDX-License-Identifier: EUPL-1.2 |
| 4 | SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | 4 | SPDX-FileCopyrightText: 2025-2026 Uko Kokņevičs <perkontevs@gmail.com> |
| 5 | --> | 5 | --> |
| 6 | <!DOCTYPE module PUBLIC | 6 | <!DOCTYPE module PUBLIC |
| 7 | "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" | 7 | "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" |
| @@ -37,7 +37,9 @@ | |||
| 37 | <!-- ## Annotations ## --> | 37 | <!-- ## Annotations ## --> |
| 38 | <module name="AnnotationLocation" /> | 38 | <module name="AnnotationLocation" /> |
| 39 | <!-- NO AnnotationOnSameLine --> | 39 | <!-- NO AnnotationOnSameLine --> |
| 40 | <module name="AnnotationUseStyle" /> | 40 | <module name="AnnotationUseStyle"> |
| 41 | <property name="trailingArrayComma" value="ignore"/> | ||
| 42 | </module> | ||
| 41 | <module name="MissingDeprecated" /> | 43 | <module name="MissingDeprecated" /> |
| 42 | <module name="MissingOverride" /> | 44 | <module name="MissingOverride" /> |
| 43 | <module name="PackageAnnotation" /> | 45 | <module name="PackageAnnotation" /> |
diff --git a/buildstuffs/src/main/resources/lv/enes/buildstuffs/pmd-rules.xml b/buildstuffs/src/main/resources/lv/enes/buildstuffs/pmd-rules.xml index 7cc91f5..7ba252b 100644 --- a/buildstuffs/src/main/resources/lv/enes/buildstuffs/pmd-rules.xml +++ b/buildstuffs/src/main/resources/lv/enes/buildstuffs/pmd-rules.xml | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <?xml version="1.0"?> | 1 | <?xml version="1.0"?> |
| 2 | <!-- | 2 | <!-- |
| 3 | SPDX-License-Identifier: AGPL-3.0-or-later | 3 | SPDX-License-Identifier: EUPL-1.2 |
| 4 | SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | 4 | SPDX-FileCopyrightText: 2025-2026 Uko Kokņevičs <perkontevs@gmail.com> |
| 5 | --> | 5 | --> |
| 6 | <ruleset name="Custom Rules" | 6 | <ruleset name="Custom Rules" |
| 7 | xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" | 7 | xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" |
diff --git a/buildstuffs/src/main/resources/lv/enes/buildstuffs/spotbugs-exclude.xml b/buildstuffs/src/main/resources/lv/enes/buildstuffs/spotbugs-exclude.xml deleted file mode 100644 index 65f2d8d..0000000 --- a/buildstuffs/src/main/resources/lv/enes/buildstuffs/spotbugs-exclude.xml +++ /dev/null | |||
| @@ -1,46 +0,0 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <!-- | ||
| 3 | SPDX-License-Identifier: AGPL-3.0-or-later | ||
| 4 | SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | ||
| 5 | --> | ||
| 6 | <FindBugsFilter xmlns="https://github.com/spotbugs/filter/4.8.4" | ||
| 7 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| 8 | xsi:schemaLocation="https://github.com/spotbugs/filter/4.8.4 | ||
| 9 | https://raw.githubusercontent.com/spotbugs/spotbugs/4.8.4/spotbugs/etc/findbugsfilter.xsd"> | ||
| 10 | <!-- Auto-generated --> | ||
| 11 | <Match> | ||
| 12 | <Source name="HelpMojo.java" /> | ||
| 13 | </Match> | ||
| 14 | |||
| 15 | <!-- Finalizer attacks... Don't use finalizers. --> | ||
| 16 | <Match> | ||
| 17 | <Bug pattern="CT_CONSTRUCTOR_THROW" /> | ||
| 18 | </Match> | ||
| 19 | |||
| 20 | <!-- Malicious code vulnerabilities. Why are you running untrusted code? --> | ||
| 21 | <Match> | ||
| 22 | <Or> | ||
| 23 | <Bug pattern="EI_EXPOSE_REP" /> | ||
| 24 | <Bug pattern="EI_EXPOSE_REP2" /> | ||
| 25 | <Bug pattern="MS_EXPOSE_REP" /> | ||
| 26 | </Or> | ||
| 27 | </Match> | ||
| 28 | |||
| 29 | <!-- This is a good check but Lombok's @Getter(lazy=true) generates code violating it :/ --> | ||
| 30 | <Match> | ||
| 31 | <Bug pattern="JLM_JSR166_UTILCONCURRENT_MONITORENTER" /> | ||
| 32 | </Match> | ||
| 33 | |||
| 34 | <!-- Nullness should get caught by checkerframework. Silencing here because Lombok generates them. --> | ||
| 35 | <Match> | ||
| 36 | <Or> | ||
| 37 | <Bug code="RCN" /> | ||
| 38 | <Bug pattern="NP_NONNULL_RETURN_VIOLATION" /> | ||
| 39 | </Or> | ||
| 40 | </Match> | ||
| 41 | |||
| 42 | <!-- Catch fallthrough with other tools which allow annotating accepted cases more easily --> | ||
| 43 | <Match> | ||
| 44 | <Bug pattern="SF_SWITCH_FALLTHROUGH" /> | ||
| 45 | </Match> | ||
| 46 | </FindBugsFilter> | ||