mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-28 12:07:42 +01:00
43 lines
1.5 KiB
Groovy
43 lines
1.5 KiB
Groovy
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")
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.google.code.gson:gson:2.8.6'
|
|
implementation 'org.jetbrains:annotations:20.1.0'
|
|
implementation 'com.squareup:javapoet:1.13.0'
|
|
// Logging
|
|
implementation 'org.apache.logging.log4j:log4j-core:2.14.0'
|
|
// 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.0'
|
|
// Kotlin stuff
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${project.kotlinVersion}"
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect:${project.kotlinVersion}"
|
|
}
|
|
|
|
|
|
run {
|
|
// Update version
|
|
setArgs(
|
|
[
|
|
// Point to gradle.properties "mcVersion"
|
|
project.rootProject.properties["mcVersion"],
|
|
// Points to src/main/resources/minecraft_data
|
|
project.rootProject.projectDir.getPath() + "${File.separatorChar}src${File.separatorChar}main${File.separatorChar}resources${File.separatorChar}minecraft_data",
|
|
// Points to src/autogenerated/java
|
|
project.rootProject.projectDir.getPath() + "${File.separatorChar}src${File.separatorChar}autogenerated${File.separatorChar}java"
|
|
]
|
|
)
|
|
dependsOn(project.rootProject.tasks.getByName("copyData"))
|
|
} |