2023-07-10 08:36:57 -07:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath 'io.github.zebalu:teavm-gradle-plugin:1.0.0'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'io.github.zebalu.teavm-gradle-plugin'
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
2023-07-14 06:50:10 -07:00
|
|
|
srcDir 'src/teavm/java'
|
2023-07-10 08:36:57 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.teavm:teavm-platform:0.6.1'
|
2023-07-14 06:50:10 -07:00
|
|
|
implementation 'org.teavm:teavm-classlib:0.6.1'
|
2023-07-12 11:03:51 -07:00
|
|
|
implementation 'com.jcraft:jzlib:1.1.3'
|
2023-07-10 08:36:57 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
teavm {
|
|
|
|
|
|
|
|
compileScopes = null;
|
|
|
|
minifying = true;
|
|
|
|
maxTopLevelNames = 10000;
|
|
|
|
properties = null;
|
|
|
|
debugInformationGenerated = false;
|
|
|
|
sourceMapsGenerated = true;
|
|
|
|
sourceFilesCopied = false;
|
|
|
|
incremental = false;
|
|
|
|
transformers = null;
|
|
|
|
|
|
|
|
/** Where to save the result */
|
|
|
|
targetDirectory = file("js");
|
|
|
|
|
|
|
|
/** The directory to monitor to decide if compile is up-to-date or not */
|
|
|
|
sourceDirectory = file("src");
|
|
|
|
|
|
|
|
/** How to name the result file. */
|
|
|
|
targetFileName = "app.js";
|
|
|
|
|
|
|
|
/** Which class holds your public static void main(Strin[] args) method */
|
2023-07-14 06:50:10 -07:00
|
|
|
mainClass = 'net.lax1dude.eaglercraft.Client';
|
2023-07-10 08:36:57 -07:00
|
|
|
|
|
|
|
/** This will be the name of your main method after compilation. */
|
|
|
|
entryPointName = 'main';
|
|
|
|
|
|
|
|
classesToPreserve = null;
|
|
|
|
stopOnErrors = false;
|
|
|
|
optimizationLevel = "ADVANCED"; //org.teavm.vm.TeaVMOptimizationLevel.SIMPLE;
|
|
|
|
fastGlobalAnalysis = false;
|
|
|
|
targetType = "JAVASCRIPT"; //org.teavm.tooling.TeaVMTargetType.JAVASCRIPT;
|
|
|
|
cacheDirectory = null;
|
|
|
|
wasmVersion = "V_0x1"; //org.teavm.backend.wasm.render.WasmBinaryVersion.V_0x1;
|
|
|
|
minHeapSize = 4;
|
|
|
|
maxHeapSize = 128;
|
|
|
|
outOfProcess = false;
|
|
|
|
processMemory = 512;
|
|
|
|
longjmpSupported = true;
|
|
|
|
heapDump = false;
|
|
|
|
|
|
|
|
/** Add name of configurations here where to look for jarfiles. */
|
|
|
|
includeJarsFrom = [];
|
|
|
|
|
|
|
|
/** By default teavmc taskd epends on javaCompile task, unless this varaibale is true. */
|
|
|
|
skipJavaCompile = false;
|
2023-07-14 06:50:10 -07:00
|
|
|
}
|