Jump to content

[1.7.2] Adding Libraries


Busti

Recommended Posts

Hello,

how can I add Libraries in 1.7? In 1.6.4 we had a folder (/libs/) for that. Is that folder still existing or do we have to handle it manually,

because I would like to install ForgeMultipart.

Thank you for any Help :D

 

- Busti

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Link to comment
Share on other sites

I'm assuming you mean on compile. You have two options really. One is to have it download the library from a repository, which requires editing your build.gradle like so:

repositories {
    ivy {
        name 'NameForYourLibrarysRepository'
        artifactPattern "http://www.someurl.com/lib/[module][revision].[ext]"
    }
}

// name corresponds to module, version corresponds to revision, and ext...that's self explanatory
dependencies {
    compile name: 'YourLibrary', version: 'LibraryVersion1.0', ext: 'jar'
}

 

Or the easier way would be just to make a folder called libs where your build.gradle is and drop all your libraries in there. =P

Link to comment
Share on other sites

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.