plugins {
    `maven-publish`
    kotlin("jvm")
}

dependencies {
    api(projects.util)
    api(libs.bundles.asm)
    api(libs.guice)
    api(libs.jackson.databind)

    implementation(projects.buffer)
    implementation(projects.cache)
    implementation(projects.compress)
    implementation(projects.crypto)
}

publishing {
    publications.create<MavenPublication>("maven") {
        from(components["java"])

        pom {
            packaging = "jar"
            name.set("OpenRS2 ASM Utilities")
            description.set(
                """
                Common utility code used for manipulating Java bytecode with
                the ASM library.
            """.trimIndent()
            )
        }
    }
}
