Skip to content

Commit

Permalink
Download JSpecify from Maven Central if it's not already built.
Browse files Browse the repository at this point in the history
  • Loading branch information
netdpb committed Jan 2, 2024
1 parent 57044c0 commit e9929b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion demo
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
# To integrate the checker into a more complex build, reading the below should give you what you need to know.

dir=$(dirname $0)
ourclasspath="$dir/../jspecify/build/libs/jspecify-0.0.0-SNAPSHOT.jar:$dir/build/libs/jspecify-reference-checker.jar"
jspecify="${dir}/../jspecify/build/libs/jspecify-0.0.0-SNAPSHOT.jar"
if [ ! -e "${jspecify}" ]; then
echo "Downloading JSpecify from Maven Central."
jspecify="${dir}/build/jspecify.jar"
curl -s 'https://repo.maven.apache.org/maven2/org/jspecify/jspecify/0.3.0/jspecify-0.3.0.jar' -o "${jspecify}"
fi
ourclasspath="${jspecify}:${dir}/build/libs/jspecify-reference-checker.jar"

export CLASSPATH="$ourclasspath:$CLASSPATH"

Expand Down

0 comments on commit e9929b3

Please sign in to comment.