From 358e1e49c95b356c2f0af632adc195a2980f3e56 Mon Sep 17 00:00:00 2001 From: flbruto Date: Thu, 15 Apr 2021 15:52:43 +0000 Subject: [PATCH] Updating dependencies and changes from #83 --- .github/workflows/maven.yml | 6 +- .gitignore | 3 + pom.xml | 149 ++++++++++++++++++------------------ 3 files changed, 82 insertions(+), 76 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 788a55fa6a..b84caa8e08 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,10 +16,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 + - name: Set up JDK 11 uses: actions/setup-java@v1 with: - java-version: 1.8 + java-version: 11 - name: Cache Maven Dependencies uses: actions/cache@v1 with: @@ -27,4 +27,4 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn -B package -Pcoverage,checkstyle,pmd,errorProne,dist --file pom.xml diff --git a/.gitignore b/.gitignore index a41a5b3bba..e5b90111a5 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,6 @@ nbactions*.xml .settings/ *.swp *.checkstyle + +# Formatter cache +.cache \ No newline at end of file diff --git a/pom.xml b/pom.xml index da83191172..80d3ff7eaf 100644 --- a/pom.xml +++ b/pom.xml @@ -37,7 +37,7 @@ 2.6 1.2 2.9.0 - 3.1.0 + 3.2.6 30.1.1-jre 2.0.0.0 4.5.13 @@ -51,14 +51,14 @@ 1.58 2.0.2 3.0.1 - 11.0.1 + 11.0.2 5.8.0-M1 1.8.0-M1 4.12 1.3.0-alpha5 3.0.0-M5 - 3.8.0 + 3.9.0 2.0.8 1.7.13 2.0.0-alpha1 @@ -72,8 +72,6 @@ ${project.basedir}/contrib/formatter.xml 11 true - 11 - 11 2.8.1 3.3.9 UTF-8 @@ -134,7 +132,7 @@ com.sun.activation jakarta.activation - 2.0.0 + 2.0.1 commons-cli @@ -206,6 +204,11 @@ javax.annotation-api ${dep.javax.annotation-api.version} + + joda-time + joda-time + 2.9.1 + junit junit @@ -923,7 +926,7 @@ ${maven.compiler.source} ${maven.compiler.source} - ${maven.compiler.target} + ${maven.compiler.release} ${eclipseFormatterStyle} LF true @@ -1016,7 +1019,7 @@ true 100 ${project.build.sourceEncoding} - ${maven.compiler.target} + ${maven.compiler.release} @@ -1417,14 +1420,6 @@ - errorProne @@ -1436,73 +1431,81 @@ org.apache.maven.plugins maven-compiler-plugin + 3.8.1 - javac-with-errorprone - - true + true - - -Xmaxwarns - 5000 - -XepDisableWarningsInGeneratedCode + -XDcompilePolicy=simple + -Xplugin:ErrorProne + -Xep:Var:OFF + -Xep:ConstantField:WARN + -Xep:RemoveUnusedImports:WARN + -Xep:WildcardImport:WARN + -Xep:ArrayToString:WARN + -Xep:ComparisonOutOfRange:WARN + -Xep:DeadException:WARN + -Xep:DefaultCharset:OFF + -Xep:DepAnn:WARN + -Xep:FormatString:WARN + -Xep:LongLiteralLowerCaseSuffix:WARN + -Xep:MethodCanBeStatic:WARN + -Xep:MixedArrayDimensions:WARN + -Xep:MultiVariableDeclaration:WARN + -Xep:MultipleTopLevelClasses:WARN + -Xep:NumericEquality:WARN + -Xep:PrivateConstructorForUtilityClass:WARN + -Xep:ThrowsUncheckedException:WARN + -Xep:TryFailThrowable:WARN + - -XepAllDisabledChecksAsWarnings + - -Xep:ArgumentParameterMismatch:OFF + - -Xep:ArgumentParameterSwap:OFF + - -Xep:Var:OFF + modifiable variables marked with @Var and + complains about the use of final everywhere else. + I'd be okay with adding the annotations, but + removing the finals is only safe if you can + guarantee you never use the compiler *without* + this add-on. --> + - -Xep:ConstantField:WARN - -Xep:RemoveUnusedImports:WARN - -Xep:WildcardImport:WARN + doesn't get counted as a warning. Change it to a + counted warning to make it easier to see how many + there are. --> + + + - -Xep:ArrayToString:WARN - -Xep:ComparisonOutOfRange:WARN - -Xep:DeadException:WARN - -Xep:DefaultCharset:OFF - -Xep:DepAnn:WARN - -Xep:FormatString:WARN - -Xep:LongLiteralLowerCaseSuffix:WARN - -Xep:MethodCanBeStatic:WARN - -Xep:MixedArrayDimensions:WARN - -Xep:MultiVariableDeclaration:WARN - -Xep:MultipleTopLevelClasses:WARN - -Xep:NumericEquality:WARN - -Xep:ParameterPackage:WARN - -Xep:PrivateConstructorForUtilityClass:WARN - -Xep:ThrowsUncheckedException:WARN - -Xep:TryFailThrowable:WARN + to warnings so that it doesn't stop the build + from continuing its analysis. --> + + + + + + com.google.errorprone + error_prone_core + 2.6.0 + + - - - - com.google.errorprone - error_prone_core - 2.3.1 - - - org.codehaus.plexus - plexus-compiler-javac-errorprone - 2.8.3 - -