Skip to content

Latest commit

 

History

History
84 lines (70 loc) · 2.14 KB

README.md

File metadata and controls

84 lines (70 loc) · 2.14 KB

Maven Repo Codacy Badge Discord Solo.to

💻 Using This Library

This library contains general utilities for java to make my life a little easier...

🐘 Gradle

repositories {
    maven { url = uri("https://repo.ender.tv/public") }
}

dependencies {
    implementation("tv.ender:Code:1.0.0")
}

⬇️ Shading this library

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


shadowJar {
    relocate("tv.ender.lib", "YOUR PACKAGE WHERE THE LIB SHOULD END UP")
}


build {
    dependsOn(shadowJar)
}

🦢 Maven

<repository>
  <id>ender-public</id>
  <name>Ender's Repo</name>
  <url>https://repo.ender.tv/public</url>
</repository>

<dependency>
  <groupId>tv.ender</groupId>
  <artifactId>Code</artifactId>
  <version>1.0.0</version>
</dependency>

⬇️ Shading this library

<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <version>3.4.1</version>
    <executions>
      <execution>
        <id>shade</id>
        <phase>package</phase>
        <goals>
          <goal>shade</goal>
        </goals>
      </execution>
    </executions>
    <configuration>
      <relocations>
        <relocation>
          <pattern>tv.ender.lib</pattern>
          <shadedPattern>YOUR PACKAGE WHERE THE LIB SHOULD END UP</shadedPattern>
        </relocation>
      </relocations>
    </configuration>
  </plugin>
  <!-- And so on -->
</plugins>