Skip to content

Commit

Permalink
SDIT-1788: ⬆️ Upgrade to latest spring boot etc. (#620)
Browse files Browse the repository at this point in the history
* SDIT-1788: ⬆️ Upgrade to latest spring boot etc.

* SDIT-1788: ⬆️ Upgrade to latest kotlin lib and use postgres flyway
  • Loading branch information
petergphillips committed May 29, 2024
1 parent 7d01e6d commit 5c2c15b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

orbs:
hmpps: ministryofjustice/hmpps@8
hmpps: ministryofjustice/hmpps@9

parameters:
alerts-slack-channel:
Expand Down
3 changes: 0 additions & 3 deletions .trivyignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@
# Suppression for h2 2.1.214 password on command line vulnerability
# can be suppressed as we only run h2 locally and not on build environments
CVE-2022-45868
# Suppression for logback-classic and logback-core as we don't let third parties control our appenders.
# See https://logback.qos.ch/news.html#1.3.12 for further information.
CVE-2023-6378
30 changes: 14 additions & 16 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import org.jlleitschuh.gradle.ktlint.tasks.KtLintFormatTask
import org.openapitools.generator.gradle.plugin.tasks.GenerateTask

plugins {
id("uk.gov.justice.hmpps.gradle-spring-boot") version "5.15.6"
kotlin("plugin.spring") version "1.9.23"
id("org.openapi.generator") version "7.5.0"
id("uk.gov.justice.hmpps.gradle-spring-boot") version "6.0.0"
kotlin("plugin.spring") version "2.0.0"
id("org.openapi.generator") version "7.6.0"
}

configurations {
Expand All @@ -17,9 +17,9 @@ configurations {
}

dependencies {
implementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter:0.2.2")
implementation("uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-starter:1.0.0")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("uk.gov.justice.service.hmpps:hmpps-sqs-spring-boot-starter:3.2-beta")
implementation("uk.gov.justice.service.hmpps:hmpps-sqs-spring-boot-starter:4.0.0")
implementation("org.springframework.boot:spring-boot-starter-data-r2dbc")

implementation("org.springdoc:springdoc-openapi-starter-webflux-ui:2.5.0")
Expand All @@ -31,23 +31,23 @@ dependencies {
runtimeOnly("org.postgresql:r2dbc-postgresql:1.0.5.RELEASE")
runtimeOnly("org.springframework.boot:spring-boot-starter-jdbc")
runtimeOnly("org.postgresql:postgresql:42.7.3")
implementation("org.flywaydb:flyway-core")
runtimeOnly("org.flywaydb:flyway-database-postgresql")

implementation("io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:1.33.1")
implementation("io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:2.4.0")

testImplementation("io.swagger.parser.v3:swagger-parser:2.1.22") {
exclude(group = "io.swagger.core.v3")
}
testImplementation("io.swagger.core.v3:swagger-core-jakarta:2.2.21")
testImplementation("io.swagger.core.v3:swagger-core-jakarta:2.2.22")
testImplementation("io.jsonwebtoken:jjwt-impl:0.12.5")
testImplementation("io.jsonwebtoken:jjwt-jackson:0.12.5")

testImplementation("org.wiremock:wiremock-standalone:3.5.3")
testImplementation("org.testcontainers:localstack:1.19.7")
testImplementation("com.amazonaws:aws-java-sdk-core:1.12.704")
testImplementation("org.wiremock:wiremock-standalone:3.6.0")
testImplementation("org.testcontainers:localstack:1.19.8")
testImplementation("com.amazonaws:aws-java-sdk-core:1.12.731")
testImplementation("org.awaitility:awaitility-kotlin:4.2.1")
testImplementation("org.testcontainers:postgresql:1.19.7")
testImplementation("io.mockk:mockk:1.13.10")
testImplementation("org.testcontainers:postgresql:1.19.8")
testImplementation("io.mockk:mockk:1.13.11")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test")
}

Expand All @@ -69,9 +69,7 @@ tasks {
"buildAlertsApiModel",
"buildCourtSentencingApiModel",
)
kotlinOptions {
jvmTarget = "21"
}
compilerOptions.jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21
}
withType<KtLintCheckTask> {
// Under gradle 8 we must declare the dependency here, even if we're not going to be linting the model
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions helm_deploy/hmpps-prisoner-from-nomis-migration/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ name: hmpps-prisoner-from-nomis-migration
version: 0.2.0
dependencies:
- name: generic-service
version: "3.2"
version: "3.3"
repository: https://ministryofjustice.github.io/hmpps-helm-charts
- name: generic-prometheus-alerts
version: "1.6"
version: "1.7"
repository: https://ministryofjustice.github.io/hmpps-helm-charts

0 comments on commit 5c2c15b

Please sign in to comment.