-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
74 lines (61 loc) · 2.11 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
plugins {
id 'groovy'
id 'application'
}
repositories {
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
maven {
url = "https://maven.quiltmc.org/repository/release"
}
mavenCentral()
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 21
}
application {
mainClass = 'com.github.winplay02.gitcraft.GitCraft'
applicationDefaultJvmArgs = ['-Xmx4G', '-XX:+HeapDumpOnOutOfMemoryError']
}
dependencies {
// General
implementation "org.apache.groovy:groovy-all:${groovy_version}"
implementation "com.google.code.gson:gson:${gson_version}"
// Loader and its deps
implementation "net.fabricmc:fabric-loader:${fabric_loader_version}"
implementation "org.ow2.asm:asm:${project.asm_version}"
implementation "org.ow2.asm:asm-analysis:${project.asm_version}"
implementation "org.ow2.asm:asm-commons:${project.asm_version}"
implementation "org.ow2.asm:asm-tree:${project.asm_version}"
implementation "org.ow2.asm:asm-util:${project.asm_version}"
implementation("net.fabricmc:stitch:${stitch_version}") {
exclude module: 'enigma'
}
// tinyfile management
implementation("net.fabricmc:tiny-remapper:${tiny_remapper_version}")
implementation "net.fabricmc:access-widener:${access_widener_version}"
implementation "net.fabricmc:mapping-io:${mappingio_version}"
implementation "net.fabricmc:fabric-loom:${loom_version}"
implementation "net.fabricmc.unpick:unpick-cli:${unpick_version}"
implementation("net.fabricmc:lorenz-tiny:${lorenz_tiny_version}") {
transitive = false
}
// https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit
implementation "org.eclipse.jgit:org.eclipse.jgit:${jgit_version}"
// Decompiler, could be replaced with another fernflower fork
implementation "org.vineflower:vineflower:${vineflower_version}"
// Testing
testImplementation(platform("org.junit:junit-bom:5.10.+"))
testImplementation("org.junit.jupiter:junit-jupiter:5.10.+")
}
// if not working: run ./gradlew run --refresh-dependencies
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 15, 'minutes'
}
test {
maxHeapSize = "4G"
useJUnitPlatform()
}