Files
reservationsystem/build.gradle

85 lines
2.1 KiB
Groovy

/*
* 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'
id 'org.openjfx.javafxplugin' version '0.1.0'
}
group = 'lodge'
version = '1.0'
// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
}
application {
mainClass = 'lodge.TestMainFx'
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/resources/media']
}
}
test {
java {
srcDirs = ['src/test/java']
}
runtimeClasspath = files("$projectDir/libs/*.jars")
}
}
repositories {
mavenCentral()
fileTree(dir:'libs', include:'*.jar')
}
javafx {
version = "24"
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.graphics', 'javafx.web' ]
}
dependencies {
//https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation 'com.google.code.gson:gson:2.13.2'
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'
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': application.mainClass,
'Class-Path': 'lodge.reservationsystem javafx.base javafx.fxml javafx.controls javafx.graphics javafx.web com.google.gson .' )
}
}