From 6e4f322c8e52e5772295bc15fa30c53e1b182ddb Mon Sep 17 00:00:00 2001 From: AlexBob <5199840@qq.com> Date: Thu, 20 Jun 2024 15:44:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E6=9E=84=E5=BB=BA=E8=BF=87?= =?UTF-8?q?=E7=A8=8B=EF=BC=9A=E7=A7=BB=E9=99=A4=E5=B9=B3=E5=8F=B0=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E5=92=8C=E5=90=AF=E5=8A=A8=E7=BC=93=E5=AD=98=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 构建和启动缓存配置被移除,以简化`platform/build.gradle`中的构建过程。这包括了之前用于 缓存的volume配置,以及相关的环境变量设置。此次更改将使得构建过程更加简洁,可能需要 更新相关的文档以反映这一变化。 BREAKING CHANGE: 构建和启动过程中不再使用缓存卷,这可能影响到之前依赖这些缓存的流程。 开发者需要确保相应的缓存策略得到更新以避免可能的性能下降。 --- boot/platform/build.gradle | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/boot/platform/build.gradle b/boot/platform/build.gradle index 4a4308b5..9a2b9310 100644 --- a/boot/platform/build.gradle +++ b/boot/platform/build.gradle @@ -18,8 +18,10 @@ configurations { tasks.named("bootBuildImage") { tags = ["${dockerPrefix}/${rootProject.name}-${project.name}:latest"] - imageName = ("${dockerPrefix}/${rootProject.name}-${project.name}:${project.version}") + imageName.set("${dockerPrefix}/${rootProject.name}-${project.name}:${project.version}") environment = [ + "BP_JVM_VERSION" : "21", + "BP_JVM_VERSION_TYPE": "jre", "BPE_DELIM_JAVA_TOOL_OPTIONS" : " ", "BPE_APPEND_JAVA_TOOL_OPTIONS": "-Dfile.encoding=UTF-8 " + "-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager" @@ -32,6 +34,16 @@ tasks.named("bootBuildImage") { email = "${dockerEmail}" } } + buildCache { + volume { + name = "cache-${rootProject.name}.build" + } + } + launchCache { + volume { + name = "cache-${rootProject.name}.launch" + } + } } dependencies {