not sure what ``from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }`` was for, but this block was for running the demo from the .jar.

Without the ``Main-Class`` atrribute, the resulting demo.jar won't be able to run.