I just couldn't figure out how to copy project dependencies(+ the main project jar file and only that file) into a directory. There is some examples on how to do it in gradle wiki but none of them actually work. I may have missed something but this is a hack to do same thing.