Files
reservationsystem/build.gradle

85 lines
2.1 KiB
Groovy
Raw Normal View History

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-10-04 12:54:41 -04:00
mainClass = 'lodge.TestMainFx'
2025-08-28 21:08:16 -04:00
}
sourceSets {
2025-10-01 18:56:39 -04:00
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/resources/media']
}
}
2025-09-29 09:59:37 -04:00
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 {
2025-10-04 12:54:41 -04:00
version = "24"
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.graphics', 'javafx.web' ]
2025-10-01 14:42:41 -04:00
}
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-10-04 12:54:41 -04:00
implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.17'
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.17'
2025-09-13 18:09:48 -04:00
}
2025-09-16 20:53:58 -04:00
jar {
manifest {
attributes 'Main-Class': application.mainClass
}
2025-10-04 12:54:41 -04:00
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
2025-09-16 20:53:58 -04:00
}
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,
2025-10-04 12:54:41 -04:00
'Main-Class': application.mainClass,
'Class-Path': 'lodge.reservationsystem javafx.base javafx.fxml javafx.controls javafx.graphics javafx.web com.google.gson .' )
2025-09-16 20:53:58 -04:00
}
2025-09-29 09:59:37 -04:00
}