mirror of
https://github.com/GayPizzaSpecifications/concrete.git
synced 2025-08-03 13:11:33 +00:00
Publish sources JAR and ensure new lines.
This commit is contained in:
@ -101,3 +101,7 @@ publishing {
|
||||
tasks.withType<Wrapper> {
|
||||
gradleVersion = "7.6"
|
||||
}
|
||||
|
||||
java {
|
||||
withSourcesJar()
|
||||
}
|
||||
|
10
tools/ensure-new-lines.sh
Executable file
10
tools/ensure-new-lines.sh
Executable 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
|
Reference in New Issue
Block a user