ShadowJar manifest does not contain Class-Path #65

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

Comments

Projects
None yet
2 participants
@kavink

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

This comment has been minimized.

Show comment
Hide comment
@johnrengelman

johnrengelman Jul 1, 2014

Owner

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.

Owner

johnrengelman commented Jul 1, 2014

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 the bug label Jul 1, 2014

@johnrengelman johnrengelman added this to the 1.0.2 milestone Jul 1, 2014

@kavink

This comment has been minimized.

Show comment
Hide comment
@kavink

kavink Jul 2, 2014

Thank you very much! Let me Try this out!

kavink commented Jul 2, 2014

Thank you very much! Let me Try this out!

@johnrengelman

This comment has been minimized.

Show comment
Hide comment
@johnrengelman

johnrengelman Jul 2, 2014

Owner

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

Owner

johnrengelman commented Jul 2, 2014

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