-
-
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.
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
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