Skip to main content
Version: GeckoLib5

Adding the Repository

To use GeckoLib in your development environment, you need to tell it where it can find the library.

To do this, you'll need to add to the repositories section of your build.gradle file.

Adding or finding the repositories block

Open your build.gradle file and find the repositories block.

If one doesn't already exist, you can create a new one by adding the following:

danger

You must NOT use the repositories block found inside the publishing or buildscript blocks

repositories {

}

Adding the maven repository

Inside that repositories block, add GeckoLib's maven repository:

repositories {
exclusiveContent {
forRepository {
maven {
name = 'GeckoLib'
url = 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/'
}
}
filter { includeGroupAndSubgroups('software.bernie.geckolib') }
}
}
warning

The maven URL above is not browsable. Attempting to browse it will result in a 404 error.
If you want to browse the maven repository, see here instead