Comments (7)
Your shadowed dependencies may contain Java 21 classes, you can try out my fork to check if it works for you, see #876 (comment). As a workaround, you can also try #876 (comment).
from shadow.
Duplicate of #894
from shadow.
Are you sure it's a duplicate?
As mentioned, it worked a few weeks ago with exactly the same configuration. I don't want to use Java 21 or a newer gradle version. I just want to understand what was changed, that the current config doesn't work anymore
from shadow.
Your classes are built on Java 21 for now. If you want to pin the byte code level to lower, try to declare sourceCompatibility
and targetCompatibility
.
from shadow.
Again, I haven't changed anything in my gradle configuration. What do you mean with "your classes"?
We only use Java 17. My classes are built on Java 17.
sourceCompatibility and targetCompatibility are also set to 17.
The shadow plugin just stopped working without any changes on my side and apparently no changes on the shadow plugin side.
That's why I think it must be one of the used dependencies by the shadow plugin.
With the libraries, that I actually shadow, I don't see a problem, because we are using them anyway in our Java 17 environment.
from shadow.
I will give your fork a try but I still think that the issue is related to a dependency used by the shadow plugin itself.
Because I even get the error when I have something like
shadowJar {
relocate('a', 'b') {}
}
from shadow.
your fork is working...
I still would be interested in the actual issue though...
:)
Thanks for the help so far
from shadow.
Related Issues (20)
- shadowRun ignores the "args" parameter
- Use new file permission API from Gradle 8.3 HOT 1
- Incompatibility with gradle configuration cache HOT 1
- Unsupported class file major version 65 HOT 6
- java.lang.NoClassDefFoundError: org.gradle.api.plugins.MavenPlugin with dependency com.github.jengelman.gradle.plugins:shadow:6.1.0 HOT 2
- NoClassDefFoundError with a JAR created with custom shadow JAR task
- two jar files in maven repo HOT 2
- Unable to run spring boot shadow jar , getting no ServletWebServerFactory bean defined in the context. HOT 1
- Incorrect publication file referenced with gradle signing and publication HOT 1
- Shadow breaks the Fabric Loom HOT 1
- Resources file in META-INF folder - conflict between shadded and not-shadded files. HOT 2
- Resources file in META-INF folder - conflict between shadded and not-shadded files.
- Plugin is incompatible with isolated projects feature HOT 1
- Future home/support for Shadow? HOT 19
- Gigantic jar when using Gradle 8.x HOT 4
- Add a getter on ShadowCopyAction.ArchiveFileTreeElement to access the containing jar file name HOT 2
- How can i upgrade the jackson-databin jar version that included in the shade jar htrace-core4 HOT 2
- ShadowJar will report ZipException but not actually fail the build, creating invalid artifacts. HOT 1
- Relocating packages is also changing properties HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadow.