Skip to content

Commit df97920

Browse files
committed
修复processResources构建缓存导致命令行-P传递的属性没有被应用的问题
1 parent 3703f7d commit df97920

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demo/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ tasks.test {
8989
}
9090
}
9191

92-
// 未生效的话,重新执行clean build run
92+
// .\gradlew.bat :demo:run -Penv=production
9393
tasks.processResources {
94+
inputs.property("env", project.properties["env"])
9495
filesMatching("application.properties") {
9596
expand(project.properties)
9697
}

0 commit comments

Comments
 (0)