Skip to content

Commit

Permalink
backend: changes
Browse files Browse the repository at this point in the history
  • Loading branch information
E3FxGaming committed Jul 21, 2024
1 parent ad829f3 commit 5299f29
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions apps/party-time-backend-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
kotlin("plugin.spring") version "2.0.0"
kotlin("plugin.jpa") version "2.0.0"
id("org.jetbrains.kotlinx.kover") version "0.8.3"
id("org.jetbrains.dokka") version "1.9.20"
}

group = "com.partytime"
Expand Down Expand Up @@ -36,8 +37,6 @@ dependencies {
//database
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
runtimeOnly("com.h2database:h2")
//runtimeOnly("io.r2dbc:r2dbc-h2")
//implementation("org.springframework.boot:spring-boot-starter-data-r2dbc")

//security
implementation("org.springframework.boot:spring-boot-starter-security")
Expand All @@ -55,7 +54,6 @@ dependencies {
//dev
implementation("org.springframework.boot:spring-boot-devtools")
implementation("org.springframework.boot:spring-boot-configuration-processor")
//implementation("org.projectlombok:lombok")

//test
testImplementation("org.springframework.boot:spring-boot-starter-test")
Expand All @@ -71,7 +69,14 @@ dependencies {
}
}

//implementation("org.jetbrains.kotlin :kotlin-reflect")
//fix from https://github.com/Kotlin/dokka/issues/3472#issuecomment-1929712374
configurations.matching { it.name.startsWith("dokka") }.configureEach {
resolutionStrategy.eachDependency {
if (requested.group.startsWith("com.fasterxml.jackson")) {
useVersion("2.15.3")
}
}
}
}

kotlin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class MailEvent(
val icsEvent: Event? = null
): ApplicationEvent(source) {
val template by lazy {
when(data) {
when(data) { //exhaustive when block due to sealed nature of the MustacheData interface
is InvitationData -> MailEventListener.TEMPLATE_INVITATION
is EventChangeData -> MailEventListener.TEMPLATE_CHANGE
is CancellationData -> MailEventListener.TEMPLATE_DELETE
Expand Down

0 comments on commit 5299f29

Please sign in to comment.