Skip to content

Commit

Permalink
Merge pull request #1035 from uhafner/java17
Browse files Browse the repository at this point in the history
Prepare for Java 17
  • Loading branch information
uhafner authored Oct 26, 2024
2 parents 1b05c97 + 3a1802b commit 2bfcd91
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

[![GitHub Actions](https://github.com/uhafner/codingstyle-pom/workflows/GitHub%20CI/badge.svg)](https://github.com/uhafner/codingstyle-pom/actions)
[![License: MIT](https://img.shields.io/badge/license-MIT-yellow.svg)](https://en.wikipedia.org/wiki/MIT_License)
![JDK17](https://img.shields.io/badge/jdk-17-blue.svg)

Each Java project should follow a given coding style.
I.e., all contributions to the source code should use the same formatting rules, design principles, code patterns, idioms, etc.
Expand Down
38 changes: 24 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>edu.hm.hafner</groupId>
<artifactId>codingstyle-pom</artifactId>
<version>4.17.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Java coding style POM</name>
Expand Down Expand Up @@ -32,6 +32,7 @@
<id>uhafner</id>
<name>Ullrich Hafner</name>
<email>ullrich.hafner@hm.edu</email>
<url>https://cs.hm.edu/~hafner</url>
<organization>Munich University of Applied Sciences</organization>
<organizationUrl>https://www.hm.edu/en/index.en.html</organizationUrl>
</developer>
Expand All @@ -57,7 +58,7 @@
<properties>
<source.encoding>UTF-8</source.encoding>
<project.build.sourceEncoding>${source.encoding}</project.build.sourceEncoding>
<java.version>11</java.version>
<java.version>17</java.version>

<module.name>undefined</module.name>

Expand All @@ -79,7 +80,7 @@
<equalsverifier.version>3.17.1</equalsverifier.version>
<junit.version>5.11.3</junit.version>
<junit-pioneer.version>2.2.0</junit-pioneer.version>
<mockito.version>5.14.1</mockito.version>
<mockito.version>5.14.2</mockito.version>
<assertj.version>3.26.3</assertj.version>
<archunit.version>1.3.0</archunit.version>

Expand All @@ -92,20 +93,20 @@
<maven-javadoc-plugin.version>3.10.1</maven-javadoc-plugin.version>
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
<maven-surefire-plugin.version>3.5.0</maven-surefire-plugin.version>
<maven-surefire-plugin.version>3.5.1</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>3.5.1</maven-failsafe-plugin.version>
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
<maven-pmd-plugin.version>3.25.0</maven-pmd-plugin.version>
<pmd.version>7.6.0</pmd.version>
<maven-checkstyle-plugin.version>3.5.0</maven-checkstyle-plugin.version>
<maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
<checkstyle.version>10.18.2</checkstyle.version>
<spotbugs-maven-plugin.version>4.8.6.4</spotbugs-maven-plugin.version>
<findsecbugs-plugin.version>1.13.0</findsecbugs-plugin.version>
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
<maven-pitest-plugin.version>1.17.0</maven-pitest-plugin.version>
<pitest-junit5-plugin.version>1.2.1</pitest-junit5-plugin.version>
<error-prone.version>2.33.0</error-prone.version>
<nullaway.version>0.11.3</nullaway.version>
<error-prone.version>2.35.1</error-prone.version>
<nullaway.version>0.12.0</nullaway.version>
<revapi-maven-plugin.version>0.15.0</revapi-maven-plugin.version>
<revapi-java.version>0.28.1</revapi-java.version>
<revapi-reporter-json-version>0.5.0</revapi-reporter-json-version>
Expand All @@ -118,14 +119,14 @@
<depgraph-maven-plugin.version>4.0.3</depgraph-maven-plugin.version>
<sortpom-maven-plugin.version>4.0.0</sortpom-maven-plugin.version>
<git-commit-id-maven-plugin.version>9.0.1</git-commit-id-maven-plugin.version>
<dependency-check-maven.version>10.0.4</dependency-check-maven.version>
<dependency-check-maven.version>11.0.0</dependency-check-maven.version>

<!-- OpenRewrite versions -->
<rewrite-maven-plugin.version>5.41.0</rewrite-maven-plugin.version>
<rewrite-testing-frameworks.version>2.21.0</rewrite-testing-frameworks.version>
<rewrite-static-analysis.version>1.17.0</rewrite-static-analysis.version>
<rewrite-maven-plugin.version>5.43.0</rewrite-maven-plugin.version>
<rewrite-testing-frameworks.version>2.20.1</rewrite-testing-frameworks.version>
<rewrite-static-analysis.version>1.19.0</rewrite-static-analysis.version>
<rewrite-migrate-java.version>2.28.0</rewrite-migrate-java.version>
<rewrite-recommendations.version>1.10.0</rewrite-recommendations.version>
<rewrite-recommendations.version>1.12.0</rewrite-recommendations.version>

<!-- Maven Surefire ArgLine -->
<argLine>-Djava.util.logging.config.file=logging.properties</argLine>
Expand Down Expand Up @@ -465,13 +466,17 @@
<activeRecipes>
<recipe>org.openrewrite.maven.BestPractices</recipe>
<recipe>org.openrewrite.maven.RemoveRedundantDependencyVersions</recipe>
<recipe>org.openrewrite.staticanalysis.AddSerialAnnotationToSerialVersionUID</recipe>
<recipe>org.openrewrite.staticanalysis.MissingOverrideAnnotation</recipe>
<recipe>org.openrewrite.staticanalysis.CodeCleanup</recipe>
<recipe>org.openrewrite.staticanalysis.CommonStaticAnalysis</recipe>
<recipe>org.openrewrite.staticanalysis.RemoveExtraSemicolons</recipe>
<recipe>org.openrewrite.java.migrate.Java8toJava11</recipe>
<recipe>org.openrewrite.java.RemoveUnusedImports</recipe>
<recipe>org.openrewrite.java.migrate.UpgradeToJava17</recipe>
<recipe>org.openrewrite.java.migrate.util.SequencedCollection</recipe>
<recipe>org.openrewrite.java.migrate.lang.var.UseVarForObject</recipe>
<recipe>org.openrewrite.java.migrate.net.JavaNetAPIs</recipe>
<recipe>org.openrewrite.java.migrate.util.JavaUtilAPIs</recipe>
<recipe>org.openrewrite.java.migrate.lang.StringRulesRecipes</recipe>
<recipe>org.openrewrite.java.format.RemoveTrailingWhitespace</recipe>
<recipe>org.openrewrite.java.format.BlankLines</recipe>
<recipe>org.openrewrite.java.format.EmptyNewlineAtEndOfFile</recipe>
Expand Down Expand Up @@ -501,6 +506,11 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>${dependency-check-maven.version}</version>
</plugin>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
Expand Down

0 comments on commit 2bfcd91

Please sign in to comment.