updates
This commit is contained in:
19
build.gradle
19
build.gradle
@@ -11,14 +11,27 @@ plugins {
|
||||
id 'application'
|
||||
}
|
||||
|
||||
// Apply a specific Java toolchain to ease working on different environments.
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(24)
|
||||
}
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = 'lodge.TestReservations'
|
||||
applicationDefaultJvmArgs = ["--add-opens", "java.base/jdk.internal.loader=ALL-UNNAMED"]
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java {
|
||||
srcDirs = ['src/java']
|
||||
srcDirs = ['src/main/java']
|
||||
}
|
||||
}
|
||||
test {
|
||||
java {
|
||||
srcDirs = ['src/test/java']
|
||||
}
|
||||
runtimeClasspath = files("$projectDir/libs/*.jars")
|
||||
}
|
||||
@@ -30,6 +43,8 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
//https://mvnrepository.com/artifact/com.google.code.gson/gson
|
||||
implementation 'com.google.code.gson:gson:2.13.2'
|
||||
}
|
||||
|
||||
@@ -46,4 +61,4 @@ tasks.named('jar') {
|
||||
'Main-Class': 'lodge.TestReservations',
|
||||
'Class-Path': 'lodge.reservationsystem com.google.gson .' )
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user