Created
November 22, 2016 13:10
-
-
Save hboregio/bedceee4bd40e2bd6ceb5b8c6fa152cd to your computer and use it in GitHub Desktop.
Gradle task to call an external bash script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task optimizePngs(type: Exec) { | |
group = 'Optimizations' | |
description = 'Reduce the PNG size using PNGQuant' | |
def absolutePath = file('..') // Get project absolute path | |
commandLine "$absolutePath/scripts/optimize_png.sh", "$absolutePath/app/src" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment