Skip to content

Instantly share code, notes, and snippets.

@bodiam
Forked from erdi/gist:5998112
Last active December 19, 2015 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bodiam/5998377 to your computer and use it in GitHub Desktop.
Save bodiam/5998377 to your computer and use it in GitHub Desktop.
Gradle script to prints the file location of the produced artifact. Can be put in ~/.gradle/init.gradle so it can be used across projects.
allprojects {
tasks.withType(AbstractArchiveTask) { task ->
outputs.upToDateWhen { false }
task.doLast {
println "\nOutput location: ${archiveName}\n"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment