Skip to content

General Java utility library for srnyx's projects

License

Notifications You must be signed in to change notification settings

srnyx/java-utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

150bcfd · Mar 8, 2025

History

34 Commits
Sep 12, 2023
Mar 8, 2025
Mar 8, 2025
Sep 12, 2023
Sep 12, 2023
Sep 12, 2023
Sep 12, 2023
Feb 13, 2025
Mar 8, 2025
Aug 14, 2024
Sep 12, 2023

Repository files navigation

srnyx's Java Utilities Release

A general Java utility library for srnyx's projects

Wiki / Javadocs

Importing

You can import the library using Jitpack. Make sure to replace VERSION with the version you want. You MUST use implementation.

  • Gradle Kotlin (build.gradle.kts):
// Required plugins
plugins { 
  java
  id("com.github.johnrengelman.shadow") version "8.1.1" // https://github.com/johnrengelman/shadow/releases/latest
}
// Jitpack repository
repositories { 
  maven("https://jitpack.io")
}
// Lazy Library dependency declaration
dependencies {
  implementation("xyz.srnyx", "java-utilities", "VERSION")
}
  • Gradle Groovy (build.gradle):
// Required plugins
plugins {
  id 'java'
  id 'com.github.johnrengelman.shadow' version '8.1.1' // https://github.com/johnrengelman/shadow/releases/latest
}
// Jitpack repository
repositories {
  maven { url = 'https://jitpack.io' }
}
// Lazy Library dependency declaration
dependencies {
  implementation 'xyz.srnyx:java-utilities:VERSION'
}
  • Maven (pom.xml):
    • Shade plugin
    <build>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-shade-plugin</artifactId>
          <version>3.4.1</version>
          <executions>
            <execution>
              <phase>package</phase>
              <goals>
                <goal>shade</goal>
              </goals>
            </execution>
          </executions>
          <!-- Exclude META-INF to avoid conflicts (not sure if this is needed) -->
          <configuration>
            <filters>
              <filter>
                <artifact>xyz.srnyx:*</artifact>
                <excludes>
                  <exclude>META-INF/*.MF</exclude>
                </excludes>
              </filter>
            </filters>
          </configuration>
        </plugin>
      </plugins>
    </build>
    • Jitpack repository
     <repositories>
          <repository>
              <id>jitpack</id>
              <url>https://jitpack.io</url>
          </repository>
      </repositories>
    • Lazy Library dependency declaration
      <dependencies>
          <dependency>
              <groupId>xyz.srnyx</groupId>
              <artifactId>java-utilities</artifactId>
              <version>VERSION</version>
          </dependency>
      </dependencies>