From 8c63c780c3e4263de73a9476bb67a4540df04b83 Mon Sep 17 00:00:00 2001 From: Stefano Cordio Date: Sat, 27 Jul 2019 08:39:44 +0200 Subject: [PATCH] Pom refactoring (#40) * Reorder POM sections according to the Apache Maven POM Code Convention * Move plugin versions to plugin management sections, update plugin version for maven-javadoc-plugin and maven-project-info-reports-plugin * Fix url, add .editorconfig --- .editorconfig | 15 ++ pom.xml | 380 +++++++++++++++++++++++++++++++------------------- 2 files changed, 249 insertions(+), 146 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1f4e341 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# EditorConfig: https://editorconfig.org/ + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 + +# 2 space indentation for java, xml and yml files +[*.{java,xml,yml,sh}] +indent_style = space +indent_size = 2 diff --git a/pom.xml b/pom.xml index 8befb59..e29a07e 100644 --- a/pom.xml +++ b/pom.xml @@ -6,9 +6,14 @@ assertj-parent-pom 2.2.4-SNAPSHOT pom + AssertJ - Fluent assertions for java unit testing Parent POM for all AssertJ modules http://assertj.org + + AssertJ + https://assertj.github.io/doc/ + Apache License, Version 2.0 @@ -16,20 +21,7 @@ repo - - AssertJ - joel-costigliola.github.io/assertj/index.html - - - scm:git:git@github.com:joel-costigliola/assertj-maven-parent-pom.git - scm:git:git@github.com:joel-costigliola/assertj-maven-parent-pom.git - https://github.com/joel-costigliola/assertj-maven-parent-pom - HEAD - - - github - https://github.com/joel-costigliola/assertj-maven-parent-pom/issues - + joel-costigliola @@ -41,6 +33,17 @@ + + + scm:git:git@github.com:joel-costigliola/assertj-maven-parent-pom.git + scm:git:git@github.com:joel-costigliola/assertj-maven-parent-pom.git + https://github.com/joel-costigliola/assertj-maven-parent-pom + HEAD + + + github + https://github.com/joel-costigliola/assertj-maven-parent-pom/issues + ossrh @@ -52,6 +55,12 @@ + + UTF-8 + 8 + -Xdoclint:none + + @@ -69,110 +78,6 @@ - - - release - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - sign-artifacts - verify - - sign - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - - - attach-javadocs - - jar - - - ${maven.compiler.source} - ${additionalparam} - - - - - - - - - eclipse - - - m2e.version - - - - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - [1.0.0,) - - enforce - - - - - - - - - org.jacoco - jacoco-maven-plugin - [0.7.5.201505241946,) - - prepare-agent - - - - - - - - - com.mycila - license-maven-plugin - [2.11,) - - format - - - - - - - - - - - - - - - - clean install @@ -242,23 +147,112 @@ + + com.mycila + license-maven-plugin + 3.0 + + + org.apache.maven.plugins + maven-clean-plugin + 3.1.0 + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.0 + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + + + org.apache.maven.plugins + maven-eclipse-plugin + 2.10 + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M2 + org.apache.maven.plugins - maven-javadoc-plugin + maven-install-plugin + 2.5.2 + + + org.apache.maven.plugins + maven-jar-plugin 3.1.0 + + org.apache.maven.plugins + maven-project-info-reports-plugin + 3.0.0 + + + org.apache.maven.plugins + maven-release-plugin + 2.5.3 + + + org.apache.maven.plugins + maven-resources-plugin + 3.1.0 + + + org.apache.maven.plugins + maven-site-plugin + 3.7.1 + + + org.apache.maven.plugins + maven-source-plugin + 3.0.1 + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.1 + + + org.apache.maven.plugins + maven-surefire-report-plugin + 2.22.1 + + + org.codehaus.mojo + findbugs-maven-plugin + 3.0.5 + + + org.codehaus.mojo + javancss-maven-plugin + 2.1 + + + org.codehaus.mojo + jdepend-maven-plugin + 2.0 + org.codehaus.mojo versions-maven-plugin 2.7 + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + org.apache.maven.plugins maven-enforcer-plugin - 3.0.0-M2 enforce-maven @@ -279,7 +273,6 @@ org.apache.maven.plugins maven-eclipse-plugin - 2.10 @@ -294,27 +287,22 @@ org.apache.maven.plugins maven-clean-plugin - 3.1.0 org.apache.maven.plugins maven-jar-plugin - 3.1.0 org.apache.maven.plugins maven-deploy-plugin - 2.8.2 org.apache.maven.plugins maven-install-plugin - 2.5.2 org.apache.maven.plugins maven-resources-plugin - 3.1.0 ${project.build.sourceEncoding} @@ -322,7 +310,6 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.0 ${maven.compiler.source} ${maven.compiler.source} @@ -332,7 +319,6 @@ org.apache.maven.plugins maven-surefire-plugin - 2.22.1 **/*Test.java @@ -343,7 +329,6 @@ org.apache.maven.plugins maven-release-plugin - 2.5.3 true false @@ -354,7 +339,6 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.8 true ossrh @@ -365,7 +349,6 @@ org.apache.maven.plugins maven-source-plugin - 3.0.1 attach-sources @@ -378,7 +361,6 @@ com.mycila license-maven-plugin - 3.0
licence-header.txt
@@ -409,41 +391,36 @@
+ org.apache.maven.plugins maven-site-plugin - 3.7.1 org.codehaus.mojo javancss-maven-plugin - 2.1 org.codehaus.mojo jdepend-maven-plugin - 2.0 org.codehaus.mojo findbugs-maven-plugin - 3.0.5 - - Max - + + Max + org.apache.maven.plugins maven-surefire-report-plugin - 2.22.1 org.apache.maven.plugins maven-project-info-reports-plugin - 3.0 org.codehaus.mojo @@ -452,10 +429,121 @@ - - UTF-8 - 8 - -Xdoclint:none - + + + release + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.1 + + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + sign-artifacts + verify + + sign + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + ${maven.compiler.source} + ${additionalparam} + + + + + + + + + eclipse + + + m2e.version + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + [1.0.0,) + + enforce + + + + + + + + + org.jacoco + jacoco-maven-plugin + [0.7.5.201505241946,) + + prepare-agent + + + + + + + + + com.mycila + license-maven-plugin + [2.11,) + + format + + + + + + + + + + + + + + +