Skip to content

Commit

Permalink
chore: bumped pdfgen-core to 1.1.36 and kotlin to 2.1.0 (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikAoJk authored Nov 28, 2024
1 parent 832ed16 commit 3563b2d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ val junitJupiterVersion = "5.11.3"
val verapdfVersion = "1.26.1"
val ktfmtVersion = "0.44"
val testcontainersVersion = "1.20.4"
val pdfgencoreVersion = "1.1.35"
val pdfgencoreVersion = "1.1.36"


///Due to vulnerabilities
Expand All @@ -27,7 +27,7 @@ val nettycommonVersion = "4.1.115.Final"

plugins {
id("application")
kotlin("jvm") version "2.0.21"
kotlin("jvm") version "2.1.0"
id("com.diffplug.spotless") version "6.25.0"
id("com.gradleup.shadow") version "8.3.5"
id("com.github.ben-manes.versions") version "0.51.0"
Expand Down
8 changes: 2 additions & 6 deletions src/main/kotlin/no/nav/pdfgen/plugins/LifecycleHooks.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@ import no.nav.pdfgen.ApplicationState

fun Application.configureLifecycleHooks(applicationState: ApplicationState) {

monitor.subscribe(ApplicationStarted) {
applicationState.alive = true
}
monitor.subscribe(ServerReady) {
applicationState.ready = true
}
monitor.subscribe(ApplicationStarted) { applicationState.alive = true }
monitor.subscribe(ServerReady) { applicationState.ready = true }
monitor.subscribe(ApplicationStopped) {
applicationState.ready = false
applicationState.alive = false
Expand Down
1 change: 0 additions & 1 deletion src/test/kotlin/no/nav/pdfgen/ApplicationTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ internal class ApplicationTest {
}
assertNotReady()
}

}

private suspend fun ApplicationTestBuilder.assertReady() {
Expand Down

0 comments on commit 3563b2d

Please sign in to comment.