Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")

}

Expand All @@ -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<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
}
}
15 changes: 15 additions & 0 deletions app/src/main/kotlin/app/config/Config.kt
Original file line number Diff line number Diff line change
@@ -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
)


12 changes: 12 additions & 0 deletions app/src/main/resources/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
postgresHost: localhost
postgresPort: 5432
postgresDatabase: database
postgresUsername: postgres
postgresPassword: password

neo4jUri: bolt://localhost
neo4jUsername: neo4j
neo4jPassword: password