Skip to content

Commit b445c42

Browse files
committed
explicitly don't cache outputs for Maven Publish tasks
1 parent 8787a80 commit b445c42

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/main/kotlin/DevPublishPlugin.kt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ constructor(
200200
}
201201
}
202202

203+
outputs.cacheIf("do not cache - this task only performs simple file modifications") { _ ->
204+
false
205+
}
206+
203207
doFirst_("clear staging repo") {
204208
if (repoIsDevPub.get()) {
205209
// clear the staging repo so that we can only sync this publication's files in the doLast {} below

0 commit comments

Comments
 (0)