Skip to main content

Ezlib

Welcome to Ezlib wiki, here you will find information about the use of this lightweight library.

Introduction

Ezib is a library created to provide an easy way to load dependencies of Java projects at runtime, including support for package relocation.

Requirements

  • Minimum Java 8

Dependency

version

Ezlib it's completely shadeable in your project.

So you can copy the Ezlib class or add it as implementación.

plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
}

repositories {
maven { url 'https://jitpack.io' }
}

// Use only ezlib
dependencies {
implementation 'com.saicone.ezlib:ezlib:VERSION'
}

// Use ezlib loader instead
dependencies {
implementation 'com.saicone.ezlib:loader:VERSION'
// Use annotations
compileOnly 'com.saicone.ezlib:annotations:VERSION'
annotationProcessor 'com.saicone.ezlib:annotations:VERSION'
}

jar.dependsOn (shadowJar)

shadowJar {
relocate 'com.saicone.ezlib', project.group + '.ezlib'
}

</TabItem>
<TabItem value="kotlin" label="build.gradle.kts">

```kotlin
plugins {
id("com.github.johnrengelman.shadow") version "8.1.1"
}

repositories {
maven("https://jitpack.io")
}

// Use only ezlib
dependencies {
implementation("com.saicone.ezlib:ezlib:VERSION")
}

// Use ezlib loader instead
dependencies {
implementation("com.saicone.ezlib:loader:VERSION")
// Use annotations
compileOnly("com.saicone.ezlib:annotations:VERSION")
annotationProcessor("com.saicone.ezlib:annotations:VERSION")
}

tasks {
jar {
dependsOn(tasks.shadowJar)
}

shadowJar {
relocate("com.saicone.ezlib", "${project.group}.ezlib")
}
}