Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 1.99 KB

README.md

File metadata and controls

52 lines (44 loc) · 1.99 KB

Libby Jar

Runtime Dependency Management


What is Libbyjar?

LibbyJar allows you to easily include your gradle dependencies in your plugin with the help of libby

Usage Example

Note: Use the shadowJar task to compile your project



// this needs to be ran before you reference your dependencies
Libraries.load(new PaperLibraryManager(plugin));

(NOTE: If you have specified relocations and are running in a IDE or any environment that does not use the shadowjar-ed build file, use the ignoreRelocation flag while running by using -DignoreRelocation in your runner arguments) build.gradle.kts

plugins { 
    id("com.gradleup.shadow") version "8.3.5"
    id("de.crazydev22.libbyjar") version "1.0.3"
}
dependencies { 
    libby("group.id:artifact.id:version")
}

libbyJar { 
    relocate("a.b.c", "m.n.o")
    packageName = "de.crazydev22.libbyjar" //The package of the generated libraries class
    className = "Libraries" //The name of the generated libraries class
    checksum = true //Whether to generate checksums or not

    repository = "https://repo.alessiodp.com/releases/" //The Repository to get libby from
    type = "paper" //The libby environment to use (defaults to core)
    version = "1.3.1" //The libby version to use
    config = "implementation" //The gradle configuration to add libby to
}