-
Notifications
You must be signed in to change notification settings - Fork 408
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
*.jar files in resources directory are always excluded #276
Comments
Actually, it seems that the |
+1 |
I've renamed the jar extension to prevent that to happen for now. |
the problem here is that at the time Shadow runs, it doesn't know if the Jar file was provide as a dependency or included in the source files since the compiled code is being run through the processor so that transformers and relocators can modify it. I don't see an easy way around this other than naming it something other than |
that works for me, thanks for the help @johnrengelman |
I just lost several hours to this. I think it would help if this edge case is more explicitly documented. I was about to file a new issue, but then I found this. Are the docs available somewhere in github that would allow for a PR? |
I believe this should be fixed by #1233. |
Writing a language server for a language that requires having certain jars on the classpath for compilation. Note that these jars are not needed to compile the language server itself. But the language server needs them to compile code in the served language. I was thinking that I could put these jars in the
resources/
directory of my project, and that they would then make it into the language server's jar file. This works for a normal jar, but it seems that when creating a shadow jar, any kind of*.jar
file in the resources directory is excluded, regardless of myincludes
andexcludes
configuration.Shadow Version
1.2.3
Gradle Version
3.3
Expected Behavior
*.jar
files in theresources/
directory are included in the shadow jar.Actual Behavior
The
*.jar
files are always excluded. Their parent directories may be included, though.The text was updated successfully, but these errors were encountered: