plugins {
    application
    id("minestom.common-conventions")
}

application {
    mainClass.set("net.minestom.codegen.Generators")
}

dependencies {
    implementation(libs.gson)
    implementation(libs.jetbrainsAnnotations)
    implementation(libs.javaPoet)
    // Logging
    implementation(libs.bundles.logging)
    // Contains the json files
    implementation(libs.minestomData)
}

tasks {
    getByName<JavaExec>("run") {
        args = listOf(project.rootProject.projectDir.resolve("src").resolve("autogenerated").resolve("java").absolutePath)
    }
}
