-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
62 lines (52 loc) · 1.58 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
plugins {
id 'java'
id "edu.sc.seis.launch4j" version "2.5.4"
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
group 'com.mohistmc.luyten'
version '1.1'
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
maven { url = "https://jitpack.io" }
maven { url = "https://maven.quiltmc.org/repository/release/" }
}
dependencies {
implementation 'com.fifesoft:rsyntaxtextarea:3.4.1'
implementation 'com.apple:AppleJavaExtensions:1.4'
implementation 'org.bitbucket.mstrobel:procyon-core:0.6.0'
implementation 'org.bitbucket.mstrobel:procyon-expressions:0.6.0'
implementation 'org.bitbucket.mstrobel:procyon-reflection:0.6.0'
implementation 'org.bitbucket.mstrobel:procyon-compilertools:0.6.0'
implementation 'com.github.weisj:darklaf-core:3.0.2'
implementation 'com.github.leibnitz27:cfr:0.152'
implementation 'org.vineflower:vineflower:1.10.1'
implementation 'com.bennyhuo.kotlin:kotlinp:1.8.10'
}
apply plugin: 'application'
mainClassName = 'com.mohistmc.luyten.Luyten'
application {
mainClass = mainClassName
}
jar {
manifest {
attributes(
'Premain-Class': 'com.mohistmc.luyten.JarLoader',
'Launcher-Agent-Class': 'com.mohistmc.luyten.JarLoader',
'Main-Class': mainClassName
)
}
}
jar.dependsOn(shadowJar)
launch4j {
mainClassName = mainClassName
icon = "${projectDir}/luyten.ico"
jarTask = project.tasks.shadowJar
}