-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
55 lines (45 loc) · 1 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath files("src/teavmc-classpath/resources")
}
}
plugins {
id "java"
id "org.teavm" version "0.9.2"
id "com.diffplug.spotless" version "7.0.1"
}
sourceCompatibility = 11
targetCompatibility = 11
sourceSets {
main {
java {
srcDir 'src/main/java'
}
}
}
repositories {
mavenCentral()
}
dependencies {
implementation "org.teavm:teavm-jso:0.9.2"
implementation "org.teavm:teavm-jso-apis:0.9.2"
implementation "org.teavm:teavm-core:0.9.2"
teavm(teavm.libs.jso)
teavm(teavm.libs.jsoApis)
}
def folder = "javascript"
def name = "classes.js"
teavm.js {
targetFileName = "../" + name
sourceMap = true
obfuscated = false;
processMemory = 2048
entryPointName = "main"
mainClass = "com.demez.minecraft.Client.Client"
outputDir = file(folder)
properties = [ "java.util.TimeZone.autodetect": "true" ]
debugInformation = true
}