Skip to content

Commit

Permalink
Java -> 21
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmccormackbconline committed Jun 6, 2024
1 parent ca46c78 commit ff274a4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is left here for reference, but is no longer used.
# The preferred way to build a docker image from source is using the Spring Boot CNB feature (./gradlew buildBootImage).
FROM openjdk:17-jre
FROM openjdk:21-jre
WORKDIR /app
COPY build/libs/*.jar /app/app.jar
EXPOSE 8080
Expand Down
10 changes: 8 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {

// Java
java {
toolchain { languageVersion = JavaLanguageVersion.of(17) }
toolchain { languageVersion = JavaLanguageVersion.of(21) }
}

// Spring Boot
Expand All @@ -40,8 +40,14 @@ processResources.dependsOn(npmBuild)
sourceSets { main.resources.srcDirs 'ui/dist' }
clean { delete 'ui/dist' }

//Tests
test {
jvmArgs '--add-opens=java.base/java.lang=ALL-UNNAMED'
}


// Jacoco test coverage
jacoco.toolVersion '0.8.7'
jacoco.toolVersion '0.8.12'
jacocoTestReport.reports.html.destination file("${buildDir}/reports/coverage/test")
plugins.withType(JacocoPlugin) {
tasks['test'].finalizedBy jacocoTestReport
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ info:
java.version: ${java.version}

spring.mvc.async.request-timeout: 600000 # = 10 * 60 * 1000 = 10 minutes. To support streaming downloads of export data.
resilience4j.bulkhead.instances.export.maxConcurrentCalls: 1
resilience4j.bulkhead.instances:
export:
max-concurrent-calls: 1

logging.level:
org.springframework.web: ERROR
Expand Down

0 comments on commit ff274a4

Please sign in to comment.