Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use EISOP release and include jspecify/jdk in jar #188

Merged
merged 9 commits into from
Jul 25, 2024
Prev Previous commit
Next Next commit
Download the -all version
wmdietl committed Jul 15, 2024
commit e983aaca5f3b1fd57d35433b53af0d3e81760493
6 changes: 4 additions & 2 deletions demo
Original file line number Diff line number Diff line change
@@ -20,11 +20,11 @@ checkerFrameworkDir="${dir}/../checker-framework/"
checkerFrameworkJar="${checkerFrameworkDir}/checker/dist/checker.jar"
if [ ! -e "${checkerFrameworkJar}" ]; then
cfVersion="3.42.0-eisop4"
checkerFrameworkJar="${dir}/build/checker-${cfVersion}.jar"
checkerFrameworkJar="${dir}/build/checker-${cfVersion}-all.jar"
if [ ! -e "${checkerFrameworkJar}" ]; then
echo "Downloading $(basename "${checkerFrameworkJar}") from Maven central"
mvn -q org.apache.maven.plugins:maven-dependency-plugin:3.6.1:copy \
-Dartifact="io.github.eisop:checker:${cfVersion}" \
-Dartifact="io.github.eisop:checker:${cfVersion}:jar:all" \
-DoutputDirectory="$(dirname "${checkerFrameworkJar}")"
fi
fi
@@ -42,6 +42,8 @@ export CLASSPATH="${ourclasspath}:$CLASSPATH"
java -jar "${checkerFrameworkJar}" \
-processorpath "${ourclasspath}" \
-processor com.google.jspecify.nullness.NullSpecChecker \
-checkerQualJar "${checkerFrameworkJar}" \
-checkerUtilJar "${checkerFrameworkJar}" \
-AcheckImpl \
-AassumePure \
-AsuppressWarnings=contracts.conditional.postcondition.false.methodref,contracts.conditional.postcondition.false.override,contracts.conditional.postcondition.true.methodref,contracts.conditional.postcondition.true.override,purity.methodref,purity.overriding,type.anno.before.decl.anno,type.anno.before.modifier \