shadow icon indicating copy to clipboard operation
shadow copied to clipboard

[Question] Disable Class-Path

Open iocmet opened this issue 1 year ago • 3 comments

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

iocmet avatar Sep 24 '23 07:09 iocmet

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

H4kt avatar Oct 24 '23 15:10 H4kt

Still not found way to do this

iocmet avatar Oct 25 '23 09:10 iocmet

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.

H4kt avatar Oct 25 '23 09:10 H4kt