Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello,

I'm new in creating mods and using intellij idea. I saw a few tutorials about this topic, but if I use a dependency and build mod, the dependency doesn't want to compile into final jar.

 

My build.gradle:

dependencies {
    minecraft 'net.minecraftforge:forge:1.16.3-34.1.0'

    compile 'edu.cmu.sphinx:sphinx4-core:5prealpha-SNAPSHOT'
    compile 'edu.cmu.sphinx:sphinx4-data:5prealpha-SNAPSHOT'
}

 

And my build method:

image.png.67f5db361692900c472d2366be0f156c.png

 

But result is without compiled dependency. Where is a problem?

Thanks for replying.

Libraries dont just automatically get built into the jar of each project that uses them.

That would be an immense waste of space/bandwidth.

Not to mention the potentially legalities of it. 

You wouldn't want to ship all of Minecraft in your Jar just because you use it as a dependency.

However if you DO want to shade a jar in, you can. There are tools such as the shadow plugin for gradle that'll let you choose which libraries to ship.

 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • Author

Ok, so what I should do, if I want to use external library, which isn't contains in minecraft (in forge).

  • Author

Oh sorry, I though if I use gradle shade, I put these jars into my jar but with minecraft.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.