GradleUp / shadow

Gradle plugin to create fat/uber JARs, apply file transforms, and relocate packages for applications and libraries. Gradle version of Maven's Shade plugin.
https://www.gradleup.com/shadow/
Apache License 2.0
3.75k stars 395 forks source link

[Question] Disable Class-Path #886

Open iocmet opened 1 year ago

iocmet commented 1 year ago

Here shadow.doFirst { if (!files.empty) { def libs = libsProvider.get() libs.addAll files.collect { "${it.name}" } manifest.attributes 'Class-Path': libs.findAll { it }.join(' ') } } shadow sets 'Class-Path' attribute but i not need it and gradle not provides way to remove manifest attribute

H4kt commented 1 year ago

Same here Need a way to disable meta-inf class-path generation

iocmet commented 1 year ago

Still not found way to do this

H4kt commented 1 year ago

Still not found way to do this

There is a workaround to use compileOnly instead of shadow when declaring dependencies, which works for this case but is not semantically correct.