Publish sources JAR and ensure new lines.

This commit is contained in:
2023-02-07 05:57:45 -05:00
parent 34648bdc8c
commit 0ed243e9ae
2 changed files with 14 additions and 0 deletions

View File

@ -101,3 +101,7 @@ publishing {
tasks.withType<Wrapper> {
gradleVersion = "7.6"
}
java {
withSourcesJar()
}

10
tools/ensure-new-lines.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
git ls-files -z | while IFS= read -rd '' f
do
if file --mime-encoding "$f" | grep -qv binary
then
tail -c1 < "$f" | read -r _ || echo >> "$f"
fi
done