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
2022-01-01 18:27:52 +01:00
implementation(libs.minestomData)
// 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 {
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
}
}