Skip to content

Commit 9b7972f

Browse files
committed
fix: Use Sync task rather than Copy, which may leave deleted files in place
1 parent bdcaeeb commit 9b7972f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dd-java-agent/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def generalShadowJarConfig(ShadowJar shadowJarTask) {
122122
}
123123

124124
def includeShadowJar(TaskProvider<ShadowJar> includedShadowJarTask, String agentDir, Provider<Directory> includedAgentDir) {
125-
project.tasks.register("expandAgentShadowJar${agentDir.capitalize()}", Copy) {
125+
project.tasks.register("expandAgentShadowJar${agentDir.capitalize()}", Sync) {
126126
group = LifecycleBasePlugin.BUILD_GROUP
127127
description = "Expand the included shadow jar into the agent jar under ${agentDir}"
128128

0 commit comments

Comments
 (0)