Add Energy Storage as dependency
This commit is contained in:
19
build.gradle
19
build.gradle
@@ -8,16 +8,13 @@ import org.gradle.internal.os.OperatingSystem
|
||||
ext {
|
||||
if (project.hasProperty('hytale_home')) {
|
||||
hytaleHome = project.findProperty('hytale_home')
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
def os = OperatingSystem.current()
|
||||
if (os.isWindows()) {
|
||||
hytaleHome = "${System.getProperty("user.home")}/AppData/Roaming/Hytale"
|
||||
}
|
||||
else if (os.isMacOsX()) {
|
||||
} else if (os.isMacOsX()) {
|
||||
hytaleHome = "${System.getProperty("user.home")}/Library/Application Support/Hytale"
|
||||
}
|
||||
else if (os.isLinux()) {
|
||||
} else if (os.isLinux()) {
|
||||
hytaleHome = "${System.getProperty("user.home")}/.var/app/com.hypixel.HytaleLauncher/data/Hytale"
|
||||
if (!file(hytaleHome).exists()) {
|
||||
hytaleHome = "${System.getProperty("user.home")}/.local/share/Hytale"
|
||||
@@ -28,8 +25,7 @@ ext {
|
||||
|
||||
if (!project.hasProperty('hytaleHome')) {
|
||||
throw new GradleException('Your Hytale install could not be detected automatically. If you are on an unsupported platform or using a custom install location, please define the install location using the hytale_home property.');
|
||||
}
|
||||
else if (!file(project.findProperty('hytaleHome')).exists()) {
|
||||
} else if (!file(project.findProperty('hytaleHome')).exists()) {
|
||||
throw new GradleException("Failed to find Hytale at the expected location. Please make sure you have installed the game. The expected location can be changed using the hytale_home property. Currently looking in ${project.findProperty('hytaleHome')}")
|
||||
}
|
||||
|
||||
@@ -44,10 +40,17 @@ javadoc {
|
||||
options.addStringOption('Xdoclint:-missing', '-quiet')
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url = uri("https://cursemaven.com")
|
||||
}
|
||||
}
|
||||
|
||||
// Adds the Hytale server as a build dependency, allowing you to reference and
|
||||
// compile against their code. This requires you to have Hytale installed using
|
||||
// the official launcher for now.
|
||||
dependencies {
|
||||
implementation("curse.maven:EnergyStorage-1429355:7515395")
|
||||
implementation(files("$hytaleHome/install/$patchline/package/game/latest/Server/HytaleServer.jar"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user