updates
This commit is contained in:
15
build.gradle
15
build.gradle
@@ -23,8 +23,7 @@ java {
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = 'lodge.TestReservations'
|
||||
applicationDefaultJvmArgs = ["--add-opens", "java.base/jdk.internal.loader=ALL-UNNAMED"]
|
||||
mainClass = 'lodge.TestMainFx'
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
@@ -50,7 +49,8 @@ repositories {
|
||||
}
|
||||
|
||||
javafx {
|
||||
modules = [ 'javafx.controls', 'javafx.fxml' ]
|
||||
version = "24"
|
||||
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.graphics', 'javafx.web' ]
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -62,20 +62,23 @@ dependencies {
|
||||
implementation 'org.openjfx:javafx-controls:24.0.1'
|
||||
implementation 'org.openjfx:javafx-graphics:24.0.1'
|
||||
implementation 'org.openjfx:javafx-web:24.0.1'
|
||||
|
||||
implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.17'
|
||||
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.17'
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes 'Main-Class': application.mainClass
|
||||
}
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
}
|
||||
|
||||
tasks.named('jar') {
|
||||
manifest {
|
||||
attributes('Implementation-Title': 'lodge.reservationsystem',
|
||||
'Implementation-Version': 1.0,
|
||||
'Main-Class': 'lodge.TestReservations',
|
||||
'Class-Path': 'lodge.reservationsystem com.google.gson .' )
|
||||
'Main-Class': application.mainClass,
|
||||
'Class-Path': 'lodge.reservationsystem javafx.base javafx.fxml javafx.controls javafx.graphics javafx.web com.google.gson .' )
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user