eaglercraft-1.5/build.gradle

47 lines
951 B
Groovy
Raw Normal View History

2024-12-07 18:25:36 -08:00
import org.teavm.gradle.api.OptimizationLevel
2020-09-01 17:19:08 -07:00
2024-12-07 18:25:36 -08:00
plugins {
id "java"
id "eclipse"
id "org.teavm" version "0.10.2"
2020-09-01 17:19:08 -07:00
}
sourceSets {
main {
java {
2024-12-07 18:25:36 -08:00
srcDirs(
"src/main/java",
"src/teavm/java",
"sp-server/src/ipc/java"
)
2020-09-01 17:19:08 -07:00
}
}
}
repositories {
mavenCentral()
2020-09-01 17:19:08 -07:00
}
2020-09-01 17:19:08 -07:00
dependencies {
2024-12-07 18:25:36 -08:00
teavm(teavm.libs.jso)
teavm(teavm.libs.jsoApis)
2020-09-01 17:19:08 -07:00
}
2024-12-07 18:25:36 -08:00
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
2020-09-01 17:19:08 -07:00
}