Jump to content

Recommended Posts

Posted

but how do i include it i tried this: 

  Reveal hidden contents

but i get this error:

* What went wrong:
A problem occurred configuring root project 'Device-Mod-Apps'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not find shadow.jar (com.github.jengelman.gradle.plugins:shadow:1.2.4).
     Searched in the following locations:
         https://jcenter.bintray.com/com/github/jengelman/gradle/plugins/shadow/1.2.4/shadow-1.2.4.jar

Posted (edited)

i managed to solve that issue now i have another 

i have this build.gradle:

  Reveal hidden contents

but now i have the original error how do i fix this? 

 

PS also tried to add

shadowJar {
 exclude 'META-INF/LICENSE'
}

with no succes

 

Edited by lukas2005
  • 2 months later...
Posted

Add this to you jar block in build.gradle. Depending on what jars you embed, there might be some that need certain entries in their META-INF\MANIFEST.MF; add those entries into your mod's META-INF\MANIFEST.MF. Also you might have to instruct shadow to remap the embedded jar's classes into the package of your mod.

 

from configurations.embed.collect {
    it.isDirectory() ? it : zipTree(it).matching {
        exclude 'META-INF', 'META-INF/**'
    }
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.