2025-08-28 21:08:16 -04:00
|
|
|
/*
|
|
|
|
|
* This file was generated by the Gradle 'init' task.
|
|
|
|
|
*
|
|
|
|
|
* This is a general purpose Gradle build.
|
|
|
|
|
* Learn more about Gradle by exploring our Samples at https://docs.gradle.org/8.14.3/samples
|
|
|
|
|
* This project uses @Incubating APIs which are subject to change.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
|
id 'java'
|
|
|
|
|
id 'application'
|
2025-10-01 14:42:41 -04:00
|
|
|
id 'org.openjfx.javafxplugin' version '0.1.0'
|
2025-08-28 21:08:16 -04:00
|
|
|
}
|
|
|
|
|
|
2025-10-01 14:42:41 -04:00
|
|
|
group = 'lodge'
|
|
|
|
|
version = '1.0'
|
|
|
|
|
|
2025-09-29 09:59:37 -04:00
|
|
|
// Apply a specific Java toolchain to ease working on different environments.
|
|
|
|
|
java {
|
|
|
|
|
toolchain {
|
|
|
|
|
languageVersion = JavaLanguageVersion.of(24)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-28 21:08:16 -04:00
|
|
|
application {
|
2025-09-16 20:53:58 -04:00
|
|
|
mainClass = 'lodge.TestReservations'
|
2025-09-29 09:59:37 -04:00
|
|
|
applicationDefaultJvmArgs = ["--add-opens", "java.base/jdk.internal.loader=ALL-UNNAMED"]
|
2025-08-28 21:08:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
|
main {
|
|
|
|
|
java {
|
2025-09-29 09:59:37 -04:00
|
|
|
srcDirs = ['src/main/java']
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
test {
|
|
|
|
|
java {
|
|
|
|
|
srcDirs = ['src/test/java']
|
2025-08-28 21:08:16 -04:00
|
|
|
}
|
2025-09-27 23:55:09 -04:00
|
|
|
runtimeClasspath = files("$projectDir/libs/*.jars")
|
2025-08-28 21:08:16 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-13 18:09:48 -04:00
|
|
|
repositories {
|
2025-09-27 23:55:09 -04:00
|
|
|
mavenCentral()
|
2025-09-13 18:09:48 -04:00
|
|
|
fileTree(dir:'libs', include:'*.jar')
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-01 14:42:41 -04:00
|
|
|
javafx {
|
|
|
|
|
modules = [ 'javafx.controls', 'javafx.fxml' ]
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-28 21:08:16 -04:00
|
|
|
dependencies {
|
2025-09-29 09:59:37 -04:00
|
|
|
|
|
|
|
|
//https://mvnrepository.com/artifact/com.google.code.gson/gson
|
2025-09-27 23:55:09 -04:00
|
|
|
implementation 'com.google.code.gson:gson:2.13.2'
|
2025-10-01 14:42:41 -04:00
|
|
|
implementation 'org.openjfx:javafx-base:24.0.1'
|
|
|
|
|
implementation 'org.openjfx:javafx-fxml:24.0.1'
|
|
|
|
|
implementation 'org.openjfx:javafx-controls:24.0.1'
|
|
|
|
|
implementation 'org.openjfx:javafx-graphics:24.0.1'
|
|
|
|
|
implementation 'org.openjfx:javafx-web:24.0.1'
|
|
|
|
|
|
2025-09-13 18:09:48 -04:00
|
|
|
}
|
|
|
|
|
|
2025-09-16 20:53:58 -04:00
|
|
|
jar {
|
|
|
|
|
manifest {
|
|
|
|
|
attributes 'Main-Class': application.mainClass
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.named('jar') {
|
|
|
|
|
manifest {
|
2025-09-18 12:18:33 -04:00
|
|
|
attributes('Implementation-Title': 'lodge.reservationsystem',
|
2025-09-16 20:53:58 -04:00
|
|
|
'Implementation-Version': 1.0,
|
|
|
|
|
'Main-Class': 'lodge.TestReservations',
|
|
|
|
|
'Class-Path': 'lodge.reservationsystem com.google.gson .' )
|
|
|
|
|
}
|
2025-09-29 09:59:37 -04:00
|
|
|
}
|