Jump to content

Recommended Posts

Posted (edited)

I've found several posts in various places about this, but the syntax in every case is outdated.  I am shading JGit.  It and it's dependencies end up in my jar, but slf4j crashes on launch causing general horribleness.

 

  Reveal hidden contents

 

Edited by KingofGamesYami
Posted

Trying shadow out, gradlew build no longer functions.  Repeated "error: package org.eclipse.jgit.api does not exist" for all imports.  I have no idea what I'm doing wrong, as I followed the shadow introduction exactly and nothing seems to be wrong with my build.gradle...

 

  Reveal hidden contents

 

Posted
  On 6/16/2017 at 4:37 PM, diesieben07 said:

I did not say to not put it in dependencies. I said to not use a separate config.

Expand  

Ah, so also use compile.  Tried that, it worked (well, compiled), but ended up with the same results as using "shade" : log4j crashes immediately, and nothing about my mod works.  Attempting to use any method I add results in an error referring to log4j.

  Reveal hidden contents

 

Posted
  Reveal hidden contents

 

Posted (edited)

Done!  Apologies if anything is missing, I tired to exclude anything which wouldn't be needed.

 

Edit: Almost forgot, you're probably not familiar with ComputerCraft.  Once you have the game running, get an advanced computer, place it, right click to open the GUI.  Type in "lua" to enter the lua console.  Type "ccgit.init( "/test" )" to try to create a git repo.  It will show an error message.  If it doesn't, I want to know why it works for you and not me XD.

Edited by KingofGamesYami
Posted (edited)
  On 6/16/2017 at 5:06 PM, diesieben07 said:

The ComputerCraft dependency cannot be resolved.

Expand  

Ah, the custom build server is down.  It was run by a member of the community, looks like he moved it or something. I'll PM some people about it.  You can get it here for 1.11.2 (which my mod is compatible with), though you'll need a newer version of CCTweaks for the mods folder (not to compile against). moved to here.

Edited by KingofGamesYami
Posted (edited)

Reproduction Steps:

1. Clone repo

2. gradlew build

3. Add ccgit-2.0-all to mods folder with CCTweaks and ComputerCraft.

4. Launch game using minecraft launcher

5. Place an advanced computer

6. Open Lua console. (type lua)

7. Attempt to create repository (type ccgit.init( 'test' ))

8. Observe Java Exception Thrown: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

9. Attempt to open repository (type ccgit.open( 'test'))

10. Observe Java Exception Thrown: java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jgit.internal.storage.file.FileRepository

 

 

Edited by KingofGamesYami
Link was broken
  • 1 year later...

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.