Skip to content

ShadowJar manifest does not contain Class-Path #65

@kavink

Description

@kavink

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(' '))
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions