Updated for hytale-tools
This commit is contained in:
@@ -1,11 +1,48 @@
|
||||
/**
|
||||
* NOTE: This is entirely optional and basics can be done in `settings.gradle.kts`
|
||||
*/
|
||||
|
||||
repositories {
|
||||
// Any external repositories besides: MavenLocal, MavenCentral, HytaleMaven, and CurseMaven
|
||||
plugins {
|
||||
// Uncomment if you are using IntelliJ.
|
||||
// idea
|
||||
java
|
||||
id("com.azuredoom.hytale-tools") version "1.+"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// Any external dependency you also want to include
|
||||
}
|
||||
|
||||
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()
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
// Uncomment if you are using IntelliJ.
|
||||
// idea {
|
||||
// module {
|
||||
// isDownloadSources = true
|
||||
// isDownloadJavadoc = true
|
||||
// }
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user