This repository was archived by the owner on Aug 15, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·81 lines (65 loc) · 2.22 KB
/
Copy pathbuild.gradle
File metadata and controls
executable file
·81 lines (65 loc) · 2.22 KB
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
75
76
77
78
79
80
81
import net.fabricmc.loom.LoomGradleExtension
import org.gradle.internal.os.OperatingSystem
plugins {
id "fabric-loom" version "0.13-SNAPSHOT"
}
project.ext.lwjglVersion = "3.3.1"
switch (OperatingSystem.current()) {
case OperatingSystem.LINUX:
project.ext.lwjglNatives = "natives-linux"
break
case OperatingSystem.MAC_OS:
project.ext.lwjglNatives = "natives-macos"
break
case OperatingSystem.WINDOWS:
project.ext.lwjglNatives = "natives-windows"
break
}
// Use Java 18 if you prefer
// 17 is the absolute minimum
sourceCompatibility = 17
targetCompatibility = 17
def minecraftVersion = "1.19.2"
def asmVersion = "9.2"
def mainClass = "tk.simplexclient.launch.Main"
version "1.0.0"
group "tk.simplexclient"
repositories {
maven {
url "https://repo.spongepowered.org/repository/maven-public/"
}
maven {
url "https://jitpack.io/"
}
mavenCentral()
}
for (def runConfig : LoomGradleExtension.get(project).getRunConfigs()) {
runConfig.defaultMainClass mainClass
}
dependencies {
minecraft "com.mojang:minecraft:$minecraftVersion"
mappings loom.officialMojangMappings()
implementation("com.github.heni123321:LegacyLauncher:ac106bbe00") {
transitive = false
}
implementation "org.lwjgl:lwjgl-nanovg:$lwjglVersion"
runtimeOnly "org.lwjgl:lwjgl-nanovg:$lwjglVersion:$lwjglNatives"
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testCompileOnly 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
compileOnly 'org.projectlombok:lombok:1.18.24'
implementation "org.spongepowered:mixin:0.8.5"
implementation "org.ow2.asm:asm:$asmVersion"
implementation "org.ow2.asm:asm-analysis:$asmVersion"
implementation "org.ow2.asm:asm-commons:$asmVersion"
implementation "org.ow2.asm:asm-tree:$asmVersion"
implementation "org.ow2.asm:asm-util:$asmVersion"
annotationProcessor "org.ow2.asm:asm:$asmVersion"
annotationProcessor "org.ow2.asm:asm-analysis:$asmVersion"
annotationProcessor "org.ow2.asm:asm-commons:$asmVersion"
annotationProcessor "org.ow2.asm:asm-tree:$asmVersion"
annotationProcessor "org.ow2.asm:asm-util:$asmVersion"
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 17
}