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

ShadowJar manifest does not contain Class-Path #65

Closed
kavink opened this issue Jun 30, 2014 · 3 comments
Closed

ShadowJar manifest does not contain Class-Path #65

kavink opened this issue Jun 30, 2014 · 3 comments
Labels

Comments

@kavink
Copy link

kavink commented Jun 30, 2014

I am using latest version of Shadow Jar, But having an issue where 'Class-Path' is empty even though the main jar file has the correct class path.

Any thoughts on why it would happen ?

jar {
  manifest {
        attributes('Implementation-Title': 'Gradle',
                'Implementation-Version': version,
                'Built-By': System.getProperty('user.name'),
                'Built-Date': new Date(),
                'Built-JDK': System.getProperty('java.version'),
                'Class-Path': configurations.runtime.files.collect { it.name }.join(' '))
    }
}
@johnrengelman
Copy link
Collaborator

Yeah, it's probably getting overwritten by something in the ShadowJarPlugin for integration with the applications plugin.

Why do you need 'Class-Path' in the ShadowJar manifest? It doesn't really make sense since that is supposed to reference other jars.

@johnrengelman johnrengelman added this to the 1.0.2 milestone Jul 1, 2014
@kavink
Copy link
Author

kavink commented Jul 2, 2014

Thank you very much! Let me Try this out!

@johnrengelman
Copy link
Collaborator

It's not published yet as a version. But you can check out the source and compile it yourself.

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

No branches or pull requests

2 participants