-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
48 lines (35 loc) · 1.37 KB
/
build.gradle.kts
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
plugins {
id("com.github.johnrengelman.shadow") version "8.1.1"
kotlin("jvm") version "1.9.10"
kotlin("plugin.serialization") version "1.9.10"
}
group = "wtf.zani.launchwrapper"
version = "1.0.0"
repositories {
mavenCentral()
maven("https://jogamp.org/deployment/maven")
}
dependencies {
val asmVersion = "9.4"
val ktorVersion = "2.3.3"
compileOnly("com.google.guava:guava:33.0.0-jre")
compileOnly("org.json:json:20231013")
implementation("dev.datlag:kcef:2024.01.07.1")
implementation("org.ow2.asm:asm-tree:$asmVersion")
implementation("org.ow2.asm:asm-util:$asmVersion")
implementation("org.ow2.asm:asm-commons:$asmVersion")
implementation("net.sf.jopt-simple:jopt-simple:6.0-alpha-3")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
}
kotlin {
jvmToolchain(17)
}
task("run", type = JavaExec::class) {
mainClass.set("wtf.zani.launchwrapper.LunarLaunchWrapperKt")
args = listOf("--version", "1.8.9", "--module", "lunar")
jvmArgs = listOf("--add-opens", "java.base/java.io=ALL-UNNAMED", "--add-opens", "java.base/java.lang=ALL-UNNAMED")
classpath = sourceSets.main.get().runtimeClasspath
}