mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-06 02:41:59 +01:00
2d7e11adaf
Signed-off-by: TheMode <themode@outlook.fr>
40 lines
1.0 KiB
Groovy
40 lines
1.0 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
// Used to download our data
|
|
}
|
|
|
|
group 'net.minestom.server'
|
|
version '1.0'
|
|
|
|
sourceCompatibility = 17
|
|
|
|
application {
|
|
mainClass.set("net.minestom.codegen.Generators")
|
|
}
|
|
|
|
repositories {
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.google.code.gson:gson:2.8.7'
|
|
implementation 'org.jetbrains:annotations:21.0.1'
|
|
implementation 'com.squareup:javapoet:1.13.0'
|
|
// Logging
|
|
implementation 'org.apache.logging.log4j:log4j-core:2.14.1'
|
|
// SLF4J is the base logger for most libraries, therefore we can hook it into log4j2.
|
|
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.14.1'
|
|
// Contains the json files
|
|
implementation 'com.github.Minestom:MinestomDataGenerator:801b8007cf'
|
|
}
|
|
|
|
|
|
run {
|
|
// Update version
|
|
setArgs(List.of(
|
|
// Points to src/autogenerated/java
|
|
project.rootProject.projectDir.getPath() + "${File.separatorChar}src${File.separatorChar}autogenerated${File.separatorChar}java"
|
|
) as List<String>
|
|
)
|
|
}
|