diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a1156b3..0a3f383 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -35,6 +35,9 @@ dependencies { implementation("org.jetbrains.exposed", "exposed-core", "0.40.1") implementation("org.jetbrains.exposed", "exposed-dao", "0.40.1") implementation("org.jetbrains.exposed", "exposed-jdbc", "0.40.1") + implementation("com.sksamuel.hoplite:hoplite-core:2.7.2") + implementation("com.sksamuel.hoplite:hoplite-json:2.7.4") + implementation("com.sksamuel.hoplite:hoplite-yaml:2.7.4") } @@ -51,10 +54,13 @@ noArg { annotation("org.neo4j.ogm.annotation.RelationshipEntity") } -kotlin { - jvmToolchain(8) -} application { // Define the main class for the application. mainClass.set("app.AppKt") } + +tasks.withType { + kotlinOptions { + jvmTarget = "11" + } +} \ No newline at end of file diff --git a/app/src/main/kotlin/app/config/Config.kt b/app/src/main/kotlin/app/config/Config.kt new file mode 100644 index 0000000..47f95eb --- /dev/null +++ b/app/src/main/kotlin/app/config/Config.kt @@ -0,0 +1,15 @@ +package app.config + +data class Config( + val postgresHost: String, + val postgresPort: Int, + val postgresDatabase: String, + val postgresUsername: String, + val postgresPassword: String, + + val neo4jUri: String, + val neo4jUsername: String, + val neo4jPassword: String + ) + + diff --git a/app/src/main/resources/config.yaml b/app/src/main/resources/config.yaml new file mode 100644 index 0000000..b4a54a0 --- /dev/null +++ b/app/src/main/resources/config.yaml @@ -0,0 +1,12 @@ +postgresHost: localhost +postgresPort: 5432 +postgresDatabase: database +postgresUsername: postgres +postgresPassword: password + +neo4jUri: bolt://localhost +neo4jUsername: neo4j +neo4jPassword: password + + +