Skip to content

Commit

Permalink
Remove a publishing-related config-cache disabler (#3577)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnatBeresnev authored Apr 25, 2024
1 parent f5d7f60 commit a807ae3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions build-logic/src/main/kotlin/dokkabuild.publish-base.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import java.net.URI

/*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

import java.net.URI

plugins {
id("dokkabuild.base")
`maven-publish`
Expand Down Expand Up @@ -106,10 +106,3 @@ tasks.withType<AbstractPublishToMaven>().configureEach {
val signingTasks = tasks.withType<Sign>()
mustRunAfter(signingTasks)
}

tasks.withType<PublishToMavenRepository>().configureEach {
// Configuration Cache allows tasks to run in parallel. Maven repositories (especially Maven Central)
// can't cope with parallel uploads, and might drop or split publications.
// As a workaround, disable Configuration Cache whenever publishing to remote Maven repos.
notCompatibleWithConfigurationCache("Prevent parallel publishing tasks")
}

0 comments on commit a807ae3

Please sign in to comment.