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