{"action":"opened","issue":{"url":"https://api.github.com/repos/spockframework/spock-example/issues/13","repository_url":"https://api.github.com/repos/spockframework/spock-example","labels_url":"https://api.github.com/repos/spockframework/spock-example/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/spockframework/spock-example/issues/13/comments","events_url":"https://api.github.com/repos/spockframework/spock-example/issues/13/events","html_url":"https://github.com/spockframework/spock-example/issues/13","id":144136498,"number":13,"title":"no main manifest attribute, in spock-example-1.0.jar","user":{"login":"kamal2222ahmed","id":426822,"avatar_url":"https://avatars.githubusercontent.com/u/426822?v=3","gravatar_id":"","url":"https://api.github.com/users/kamal2222ahmed","html_url":"https://github.com/kamal2222ahmed","followers_url":"https://api.github.com/users/kamal2222ahmed/followers","following_url":"https://api.github.com/users/kamal2222ahmed/following{/other_user}","gists_url":"https://api.github.com/users/kamal2222ahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/kamal2222ahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamal2222ahmed/subscriptions","organizations_url":"https://api.github.com/users/kamal2222ahmed/orgs","repos_url":"https://api.github.com/users/kamal2222ahmed/repos","events_url":"https://api.github.com/users/kamal2222ahmed/events{/privacy}","received_events_url":"https://api.github.com/users/kamal2222ahmed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-29T02:31:12Z","updated_at":"2016-03-29T02:31:12Z","closed_at":null,"body":"i am trying to run the tests as one jar, by adding the following in build.gradle\r\n\r\napply plugin: 'application'\r\n```\r\ntask uberJar(type: Jar,dependsOn:[':compileGroovy']) {\r\n    zip64 true\r\n    from files(sourceSets.main.output.classesDir)\r\n    from configurations.runtime.asFileTree.files.collect {zipTree(it) }\r\n    with jar\r\n}\r\n```\r\n\r\nbut when i run it as java -jar spock-example-1.0.jar\r\n\r\ni get error:\r\n\r\nno main manifest attribute, in spock-example-1.0.jar\r\n\r\nis it because there is no main() entry point in the jar ? if not then how can i run it ? \r\neither via command line, or gradle, since it seems in order to run a jar via gradle, there needs to be a main(), but groovy files do not have main() hence the confusion\r\n"}}