-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (48 loc) · 1.22 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
plugins {
id 'application'
id 'java'
id 'eclipse'
id 'org.openjfx.javafxplugin' version '0.0.9'
}
repositories {
jcenter()
}
java{
toolchain{
languageVersion = JavaLanguageVersion.of(17)
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
dependencies {
// JavaFX dependencies
implementation 'org.openjfx:javafx-base:16.0.2'
implementation 'org.openjfx:javafx-controls:16.0.2'
implementation 'org.openjfx:javafx-fxml:16.0.2'
// org.json dependency
implementation 'org.json:json:20230227'
// JUnit dependencies
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
implementation 'org.mongodb:mongodb-driver-sync:4.11.0'
// Add any other dependencies your project may need
}
application {
mainClassName = 'project.Main' // Replace with your main class
}
javafx {
version = "16"
modules = [ 'javafx.controls', 'javafx.fxml' ] // Add more modules if needed
}
test {
useJUnitPlatform()
}
sourceSets {
main {
java{
srcDirs 'src/server/java' /* include proto files from base project level */
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}