plugins {
    `java-library`
}

version = "1.0.0"

repositories {
    mavenCentral()
}

java {
    // Minecraft 26.2 and the official BG LANDS launcher both require Java 25.
    // Keeping the protocol module on the same toolchain makes the combined
    // Fabric build reproducible in a single release container.
    toolchain.languageVersion.set(JavaLanguageVersion.of(25))
    withSourcesJar()
}

dependencies {
    api("com.google.code.gson:gson:2.10.1")
    testImplementation(platform("org.junit:junit-bom:5.11.4"))
    testImplementation("org.junit.jupiter:junit-jupiter")
    testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

tasks.test {
    useJUnitPlatform()
}
