Skip to content

Commit 3b3e043

Browse files
committed
ci: task caching
1 parent 5b5f8cc commit 3b3e043

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

boot/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ tasks.register<Copy>("untarSkywalkingAgent") {
149149

150150
from(tarTree(resources.gzip(File(projectDir.parentFile, "build/agent/apache-skywalking-java-agent-$skywalkingAgentVersion.tgz"))))
151151
into(File(projectDir.parentFile, "build/agent/extracted"))
152+
153+
outputs.cacheIf { true }
152154
}
153155

154156
tasks.register<Zip>("zipPlatformSkywalkingAgent") {
@@ -172,6 +174,8 @@ tasks.register<Zip>("zipPlatformSkywalkingAgent") {
172174
}
173175

174176
duplicatesStrategy = DuplicatesStrategy.FAIL
177+
178+
outputs.cacheIf { true }
175179
}
176180

177181
tasks.register<Zip>("zipSppSkywalkingAgent") {
@@ -197,6 +201,8 @@ tasks.register<Zip>("zipSppSkywalkingAgent") {
197201
}
198202
from(File(projectDir, "../services/build/libs/spp-skywalking-services-${project.version}.jar"))
199203
}
204+
205+
outputs.cacheIf { true }
200206
}
201207
tasks["classes"].dependsOn("zipSppSkywalkingAgent", "zipPlatformSkywalkingAgent")
202208

0 commit comments

Comments
 (0)