forked from Railroad-Team/Railroad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (76 loc) · 2.67 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
plugins {
id 'java'
id 'application'
id 'org.javamodularity.moduleplugin' version '1.8.12'
id 'org.openjfx.javafxplugin' version '0.0.13'
id 'org.beryx.jlink' version '2.25.0'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group 'io.github'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
maven { url 'https://github.com/javaterminal/terminalfx/raw/master/releases' }
maven { url 'https://packages.jetbrains.team/maven/p/ij/intellij-dependencies' }
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
application {
mainModule = 'io.github.railroad'
mainClass = 'io.github.railroad.Startup'
}
javafx {
version = '21'
modules = ['javafx.controls', 'javafx.swing', 'javafx.web']
}
dependencies {
implementation 'org.kordamp.ikonli:ikonli-javafx:12.3.1'
implementation 'org.kordamp.ikonli:ikonli-fontawesome5-pack:12.3.1'
implementation 'org.jetbrains:annotations:24.1.0'
implementation 'com.google.code.gson:gson:2.10'
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.14'
implementation 'org.json:json:20240303'
implementation 'io.github.palexdev:materialfx:11.17.0'
implementation 'ch.qos.logback:logback-classic:1.5.6'
implementation 'org.apache.groovy:groovy-all:5.0.0-alpha-9'
implementation 'org.gradle:gradle-tooling-api:7.3-20210825160000+0000'
implementation 'com.panemu:tiwulfx-dock:0.3'
implementation 'com.spencerwi:Either.java:2.9.0'
implementation 'com.kodedu.terminalfx:terminalfx:1.2.0'
implementation 'org.fxmisc.richtext:richtextfx:0.11.3'
implementation 'com.github.javaparser:javaparser-symbol-solver-core:3.26.1'
implementation 'io.github.bonede:tree-sitter:0.22.6a'
implementation 'io.github.bonede:tree-sitter-java:0.21.0a'
implementation 'org.reflections:reflections:0.10.2'
annotationProcessor 'org.projectlombok:lombok:1.18.32'
compileOnly 'org.projectlombok:lombok:1.18.32'
}
jlink {
imageZip = project.file("${layout.buildDirectory}/distributions/app-${javafx.platform.classifier}.zip")
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'app'
}
}
jlinkZip {
group = 'distribution'
}
jar {
manifest {
attributes(
"Implementation-Title": "Railroad",
"Implementation-Version": "1.0-alpha",
"Main-Class": "io.github.railroad.Startup"
)
}
}
shadowJar {
zip64 true
mergeServiceFiles()
}