Coder Social home page Coder Social logo

Comments (7)

Goooler avatar Goooler commented on July 17, 2024 1

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.

Goooler avatar Goooler commented on July 17, 2024

Duplicate of #894

from shadow.

str8y avatar str8y commented on July 17, 2024

@Goooler

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.

Goooler avatar Goooler commented on July 17, 2024

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.

str8y avatar str8y commented on July 17, 2024

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.

str8y avatar str8y commented on July 17, 2024

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.

str8y avatar str8y commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.