Skip to content

koresframework/Kores-BytecodeWriter

Repository files navigation

Kores-BytecodeWriter

jitpack Discord Actions Packages

How to use Kores-BytecodeWriter

Kores-BytecodeWriter is now using GitHub Packages to distribute its binary files instead of jitpack.io (because jitpack still not support all JDK versions and sometimes jitpack.yml simply do not work).

In order to be able to download Kores-BytecodeWriter Artifacts, you will need to configure your global $HOME/.gradle/gradle.properties to store your username and a PAT with read:packages permission:

USERNAME=GITHUB_USERNAME
TOKEN=PAT

Then configure your build.gradle as the following:

def GITHUB_USERNAME = project.findProperty("USERNAME") ?: System.getenv("USERNAME")
def GITHUB_PAT = project.findProperty("TOKEN") ?: System.getenv("TOKEN")

repositories {
    mavenCentral()
    maven {
        url "https://maven.pkg.github.com/jonathanxd/jwiutils"
        credentials {
            username = GITHUB_USERNAME
            password = GITHUB_PAT
        }
    }
    maven {
        url "https://maven.pkg.github.com/jonathanxd/bytecodedisassembler"
        credentials {
            username = GITHUB_USERNAME
            password = GITHUB_PAT
        }
    }
    maven {
        url "https://maven.pkg.github.com/koresframework/kores"
        credentials {
            username = GITHUB_USERNAME
            password = GITHUB_PAT
        }
    }
}

dependencies {
    implementation "com.github.koresframework:kores-bytecodewriter:4.1.9.bytecode" // Replace 4.1.9.bytecode with the preferred version
}