Files
reservationsystem/build.gradle

65 lines
1.4 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-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-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-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
}