I am getting no main manifest attribute while running the jar create by Intellij. I extracted the jar and observed that there was another manifest
no main manifest attribute
Actually I solved it by adding the following lines in build.gradle
build.gradle
jar { manifest { attributes 'Main-Class': 'class name' } from { configurations.compile.collect { it.isDirectory()? it: zipTree(it) } } }