Skip to content

Commit

Permalink
Minor fix to show missing -sources.jar error also in the log (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
merks committed Dec 14, 2022
1 parent a0597fa commit 5631f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publish-to-maven-central/publishProject.sh
Expand Up @@ -111,7 +111,7 @@ do
else
# If the -sources.jar is missing, and the main jar contains .class files, then we won't be able to promote this to Maven central.
if unzip -l ${file} | grep -q -e '.class$'; then
echo "BUILD FAILURE ${file} contains .class files and requires a ${sourcesFile}" | tee >> .log/sources-upload.txt
echo "BUILD FAILURE ${file} contains .class files and requires a ${sourcesFile}" | tee -a .log/sources-upload.txt
else
echo -e "\tMissing ${sourcesFile} but ${file} contains no .class files."
fi;
Expand Down

0 comments on commit 5631f9e

Please sign in to comment.