Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manifest is not created in resulting JAR. #58

Closed
stephan-gh opened this issue Jun 27, 2014 · 2 comments
Closed

Manifest is not created in resulting JAR. #58

stephan-gh opened this issue Jun 27, 2014 · 2 comments
Milestone

Comments

@stephan-gh
Copy link
Contributor

I have applied the application plugin to my build script and set the mainClassName correctly, however as of version 1.0.0 the manifest is not created at all. So there is only an empty META-INF folder in the resulting JAR file.
Also, if I try to run the generated JAR it tells me the following:

Error: Invalid or corrupt jarfile GradleTest-1.0-all.jar

I don't know if this is caused by the missing manifest or something else. Maybe I just configured the plugin wrong?
https://github.com/Minecrell/GradleTest

@johnrengelman
Copy link
Collaborator

Looks like it's a bug in the relocation code. As soon as relocation is applied, the MANIFEST.MF file does not show up.

@johnrengelman johnrengelman modified the milestones: 1.0.0, 1.0.1 Jun 27, 2014
@stephan-gh
Copy link
Contributor Author

Yes, working for me in the latest version, thank you for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants