-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
38 lines (31 loc) · 850 Bytes
/
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
plugins {
id 'java'
id 'org.openjfx.javafxplugin' version '0.0.10' // Add the JavaFX plugin
}
allprojects {
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: 'java'
version = '1.0'
sourceCompatibility = JavaVersion.VERSION_21 // Set source compatibility
targetCompatibility = JavaVersion.VERSION_21 // Set target compatibility
dependencies {
//compileOnly 'javax:javaee-api:8.0'
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
// Configure JavaFX plugin
javafx {
version = "17" // Specify the JavaFX version you are using
modules = [ 'javafx.controls', 'javafx.fxml' ] // List the JavaFX modules you need
}
sourceSets {
main {
java {
srcDirs = ['src']
}
}
}
}