Skip to content

Instantly share code, notes, and snippets.

@mcculley
Created May 8, 2020 22:53
Show Gist options
  • Save mcculley/fb55e58f8dcac765eb2882915b27e5e5 to your computer and use it in GitHub Desktop.
Save mcculley/fb55e58f8dcac765eb2882915b27e5e5 to your computer and use it in GitHub Desktop.
#!/bin/sh
# A simple wrapper around executing a Maven build to avoid starting up a JVM
# and doing unnecessary work.
if [ -n "$(find src -newer target)" ]
then
mvn package
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment