aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/main
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-08-19 16:53:35 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-19 17:41:36 +0200
commitace3fe828e1b6db055ae5592c5c8c57c3c1aaa8f (patch)
tree1c1991898c183114751d27cdad3e58ab4c158b85 /buildSrc/src/main
parent26441264926325acca16aafeeb7a846ad915a1d7 (diff)
downloaddokka-ace3fe828e1b6db055ae5592c5c8c57c3c1aaa8f.tar.gz
dokka-ace3fe828e1b6db055ae5592c5c8c57c3c1aaa8f.tar.bz2
dokka-ace3fe828e1b6db055ae5592c5c8c57c3c1aaa8f.zip
publication.kt: Improve code readability
Diffstat (limited to 'buildSrc/src/main')
-rw-r--r--buildSrc/src/main/kotlin/org/jetbrains/publication.kt10
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"
+ }
}
}
}