51 lines
1.8 KiB
Kotlin
51 lines
1.8 KiB
Kotlin
plugins {
|
|
// Uncomment if you are using IntelliJ.
|
|
// idea
|
|
java
|
|
id("com.azuredoom.hytale-tools") version "1.+"
|
|
}
|
|
|
|
|
|
tasks.withType<Javadoc>().configureEach {
|
|
(options as org.gradle.external.javadoc.StandardJavadocDocletOptions).addStringOption("Xdoclint:-missing", "-quiet")
|
|
}
|
|
|
|
group = project.property("group").toString()
|
|
|
|
java {
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(property("java_version").toString().toInt()))
|
|
}
|
|
|
|
hytaleTools {
|
|
javaVersion = property("java_version").toString().toInt()
|
|
hytaleVersion = property("hytale_version").toString()
|
|
manifestServerVersion = property("manifestServerVersion").toString()
|
|
manifestGroup = property("manifest_group").toString()
|
|
modId = property("mod_id").toString()
|
|
modDescription = property("mod_description").toString()
|
|
modUrl = property("mod_url").toString()
|
|
mainClass = property("main_class").toString()
|
|
modCredits = property("mod_author").toString()
|
|
manifestDependencies = property("manifest_dependencies").toString()
|
|
manifestOptionalDependencies = property("manifest_opt_dependencies").toString()
|
|
curseforgeId = property("curseforgeID").toString()
|
|
disabledByDefault = property("disabled_by_default").toString().toBoolean()
|
|
includesPack = property("includes_pack").toString().toBoolean()
|
|
patchline = property("patchline").toString()
|
|
injectServerJavadocsIntoSources = property("injectServerJavadocsIntoSources").toString().toBoolean()
|
|
generateAssetsBinary = property("generateAssetsBinary").toString().toBoolean()
|
|
// hytaleHomeOverride = property("hytaleHomeOverride").toString()
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
// Uncomment if you are using IntelliJ.
|
|
// idea {
|
|
// module {
|
|
// isDownloadSources = true
|
|
// isDownloadJavadoc = true
|
|
// }
|
|
// }
|