eaglercraft-1.5/build.gradle
2024-12-07 18:25:36 -08:00

47 lines
951 B
Groovy

import org.teavm.gradle.api.OptimizationLevel
plugins {
id "java"
id "eclipse"
id "org.teavm" version "0.10.2"
}
sourceSets {
main {
java {
srcDirs(
"src/main/java",
"src/teavm/java",
"sp-server/src/ipc/java"
)
}
}
}
repositories {
mavenCentral()
}
dependencies {
teavm(teavm.libs.jso)
teavm(teavm.libs.jsoApis)
}
def folder = "javascript"
def name = "classes.js"
teavm.js {
obfuscated = true
sourceMap = true
targetFileName = "../" + name
optimization = OptimizationLevel.AGGRESSIVE
outOfProcess = false
fastGlobalAnalysis = false
processMemory = 512
entryPointName = "main"
mainClass = "net.lax1dude.eaglercraft.Client"
outputDir = file(folder)
properties = [ "java.util.TimeZone.autodetect": "true" ]
debugInformation = false
}