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

[Question] Disable Class-Path #886

Open
iocmet opened this issue Sep 24, 2023 · 3 comments
Open

[Question] Disable Class-Path #886

iocmet opened this issue Sep 24, 2023 · 3 comments

Comments

@iocmet
Copy link

iocmet commented Sep 24, 2023

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
Copy link

H4kt commented Oct 24, 2023

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

@iocmet
Copy link
Author

iocmet commented Oct 25, 2023

Still not found way to do this

@H4kt
Copy link

H4kt commented Oct 25, 2023

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.

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

No branches or pull requests

2 participants