Last active
December 19, 2015 18:29
-
-
Save bodiam/5999047 to your computer and use it in GitHub Desktop.
Marcin is a crazy fish.
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
def artifacts = [] | |
addListener(new TaskExecutionAdapter() { | |
void afterExecute(Task task, TaskState state) { | |
if(task in AbstractArchiveTask) { | |
artifacts << task.outputs.files.singleFile | |
} | |
} | |
}) | |
addBuildListener(new BuildAdapter() { | |
void buildFinished(BuildResult result) { | |
if(artifacts) { | |
println "\nOutput location: ${artifacts.last()}\n" | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment