2021-06-03 12:11:42 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'application'
|
|
|
|
// Used to download our data
|
|
|
|
}
|
|
|
|
|
|
|
|
group 'net.minestom.server'
|
|
|
|
version '1.0'
|
|
|
|
|
|
|
|
sourceCompatibility = 1.11
|
|
|
|
|
|
|
|
application {
|
|
|
|
mainClass.set("net.minestom.codegen.Generators")
|
|
|
|
}
|
|
|
|
|
2021-06-17 12:23:16 +02:00
|
|
|
repositories {
|
|
|
|
}
|
|
|
|
|
2021-06-03 12:11:42 +02:00
|
|
|
dependencies {
|
2021-07-14 03:06:49 +02:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.7'
|
|
|
|
implementation 'org.jetbrains:annotations:21.0.1'
|
2021-06-03 12:11:42 +02:00
|
|
|
implementation 'com.squareup:javapoet:1.13.0'
|
|
|
|
// Logging
|
2021-07-14 03:06:49 +02:00
|
|
|
implementation 'org.apache.logging.log4j:log4j-core:2.14.1'
|
2021-06-03 12:11:42 +02:00
|
|
|
// SLF4J is the base logger for most libraries, therefore we can hook it into log4j2.
|
2021-07-14 03:06:49 +02:00
|
|
|
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.14.1'
|
|
|
|
// Contains the json files
|
2021-07-29 12:54:16 +02:00
|
|
|
implementation 'com.github.Minestom:MinestomDataGenerator:7636d5d473'
|
2021-06-03 12:11:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
run {
|
|
|
|
// Update version
|
2021-06-06 14:22:32 +02:00
|
|
|
setArgs(List.of(
|
|
|
|
// Points to src/autogenerated/java
|
|
|
|
project.rootProject.projectDir.getPath() + "${File.separatorChar}src${File.separatorChar}autogenerated${File.separatorChar}java"
|
|
|
|
) as List<String>
|
2021-06-03 12:11:42 +02:00
|
|
|
)
|
2021-06-06 04:48:43 +02:00
|
|
|
}
|