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
|
|
|
|
implementation(libs.minestomData)
|
|
|
|
|
|
|
|
// Common
|
2022-01-01 18:27:52 +01:00
|
|
|
implementation(libs.jetbrainsAnnotations)
|
2023-05-06 22:18:22 +02:00
|
|
|
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 {
|
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
|
|
|
}
|
|
|
|
}
|