diff options
Diffstat (limited to 'buildSrc')
-rw-r--r-- | buildSrc/src/main/kotlin/org/jetbrains/publication.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/buildSrc/src/main/kotlin/org/jetbrains/publication.kt b/buildSrc/src/main/kotlin/org/jetbrains/publication.kt index cd464c3c..b4259978 100644 --- a/buildSrc/src/main/kotlin/org/jetbrains/publication.kt +++ b/buildSrc/src/main/kotlin/org/jetbrains/publication.kt @@ -61,11 +61,11 @@ fun Project.configureSpacePublicationIfNecessary(vararg publications: String) { whenEvaluated { tasks.withType<PublishToMavenRepository> { - val isSpaceRepository = this.repository.name == SpaceDokkaDev.name - if (!isSpaceRepository) return@withType - this.isEnabled = this.isEnabled && publication.name in publications - if (!this.isEnabled) { - this.group = "disabled" + if (this.repository.name == SpaceDokkaDev.name) { + this.isEnabled = this.isEnabled && publication.name in publications + if (!this.isEnabled) { + this.group = "disabled" + } } } } |