Skip to content

Commit

Permalink
简化构建过程:移除平台构建和启动缓存配置
Browse files Browse the repository at this point in the history
构建和启动缓存配置被移除,以简化`platform/build.gradle`中的构建过程。这包括了之前用于
缓存的volume配置,以及相关的环境变量设置。此次更改将使得构建过程更加简洁,可能需要
更新相关的文档以反映这一变化。

BREAKING CHANGE: 构建和启动过程中不再使用缓存卷,这可能影响到之前依赖这些缓存的流程。
开发者需要确保相应的缓存策略得到更新以避免可能的性能下降。
  • Loading branch information
vnobo committed Jun 20, 2024
1 parent 3062272 commit 6e4f322
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion boot/platform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -32,6 +34,16 @@ tasks.named("bootBuildImage") {
email = "${dockerEmail}"
}
}
buildCache {
volume {
name = "cache-${rootProject.name}.build"
}
}
launchCache {
volume {
name = "cache-${rootProject.name}.launch"
}
}
}

dependencies {
Expand Down

0 comments on commit 6e4f322

Please sign in to comment.