From 0549f9fb940746108e20b5814b6bd96e24029ded Mon Sep 17 00:00:00 2001 From: Vadzim_Kavalkou Date: Thu, 16 Nov 2023 17:03:38 +0300 Subject: [PATCH] Spring Web (Native as well) are actualized. --- spring-boot-web-native/build.gradle.kts | 19 +++++++++++++++++-- spring-boot-web/build.gradle.kts | 4 ++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/spring-boot-web-native/build.gradle.kts b/spring-boot-web-native/build.gradle.kts index 4556fe50..a101c551 100644 --- a/spring-boot-web-native/build.gradle.kts +++ b/spring-boot-web-native/build.gradle.kts @@ -1,10 +1,11 @@ plugins { java application + id("org.hibernate.orm") id("org.springframework.boot") version "3.1.5" id("io.spring.dependency-management") version "1.1.4" id("org.graalvm.buildtools.native") version "0.9.28" - id("org.hibernate.orm") + id("com.google.cloud.tools.jib") version "3.4.0" } group = "by.vk" @@ -56,4 +57,18 @@ hibernate { enableAssociationManagement = true enableExtendedEnhancement = false }) -} \ No newline at end of file +} + +jib { + to { + image = "swn-service:latest" + } + from { + image = "gcr.io/distroless/java17:latest" + } + container { + ports = listOf("8080") + labels.set(mapOf("appname" to application.applicationName, "version" to version.toString(), "maintainer" to "Vadzim Kavalkou ")) + creationTime.set("USE_CURRENT_TIMESTAMP") + } +} diff --git a/spring-boot-web/build.gradle.kts b/spring-boot-web/build.gradle.kts index 664863b9..6ab2d684 100644 --- a/spring-boot-web/build.gradle.kts +++ b/spring-boot-web/build.gradle.kts @@ -64,10 +64,10 @@ object JVMProps { jib { to { - image = "spring-web-a2b-service:latest" + image = "sw-service:latest" } from { - image = "gcr.io/distroless/java21-debian12:latest" + image = "gcr.io/distroless/java17:latest" } container { jvmFlags = listOf(