Minestom/code-generators/build.gradle.kts

29 lines
583 B
Plaintext
Raw Normal View History

2022-01-01 18:27:52 +01:00
plugins {
application
}
dependencies {
// Provides the input JSON to generate from
implementation(libs.minestomData)
// Common
2022-01-01 18:27:52 +01:00
implementation(libs.jetbrainsAnnotations)
implementation(libs.slf4j)
runtimeOnly(libs.bundles.logback)
// Parsing and generation
implementation(libs.gson)
2022-01-01 18:27:52 +01:00
implementation(libs.javaPoet)
}
tasks {
application {
mainClass.set("net.minestom.codegen.Generators")
}
2022-01-01 18:27:52 +01:00
getByName<JavaExec>("run") {
args = listOf(rootProject.projectDir.resolve("src/autogenerated/java").absolutePath)
2022-01-01 18:27:52 +01:00
}
}