This is my gradle build script.
apply plugin: \'groovy\' project.group = \"test.tree\" archivesBaseName = \"tree\" project.version = \"1.0\" manifest.mainAt
I got the same issue, after adding jar block in build.gradle then it works.
jar { manifest { attributes 'Main-Class': 'demo.Demo' } from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } }