From 524d9ed9b6edbc7682e2b81f416c29e1219ab52e Mon Sep 17 00:00:00 2001 From: mkpaz Date: Thu, 9 Feb 2023 14:33:40 +0400 Subject: [PATCH] Add ErrorProne + NullAway plugins --- base/.mvn/jvm.config | 10 ++++++++++ pom.xml | 37 ++++++++++++++++++++++++++++++++++++- sampler/.mvn/jvm.config | 10 ++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 base/.mvn/jvm.config create mode 100644 sampler/.mvn/jvm.config diff --git a/base/.mvn/jvm.config b/base/.mvn/jvm.config new file mode 100644 index 0000000..32599ce --- /dev/null +++ b/base/.mvn/jvm.config @@ -0,0 +1,10 @@ +--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED +--add-opens jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED +--add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED diff --git a/pom.xml b/pom.xml index c433bf0..2a8eaf3 100755 --- a/pom.xml +++ b/pom.xml @@ -252,7 +252,6 @@ maven-surefire-plugin 3.0.0-M5 - io.github.wiverson jtoolprovider-plugin @@ -346,6 +345,42 @@ + + lint + + + + org.apache.maven.plugins + maven-compiler-plugin + + true + + -XDcompilePolicy=simple + + -Xplugin:ErrorProne \ + -Xep:NullAway:ERROR \ + -XepOpt:NullAway:AnnotatedPackages=corf \ + -XepExcludedPaths:.*/src/test/java/.* + -XepAllErrorsAsWarnings + + + + + com.google.errorprone + error_prone_core + 2.16 + + + com.uber.nullaway + nullaway + 0.10.4 + + + + + + + diff --git a/sampler/.mvn/jvm.config b/sampler/.mvn/jvm.config new file mode 100644 index 0000000..32599ce --- /dev/null +++ b/sampler/.mvn/jvm.config @@ -0,0 +1,10 @@ +--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED +--add-opens jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED +--add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED