Skip to content

Commit ea1466b

Browse files
committed
remove plugin applied twice and teamcity block
1 parent 4fb6845 commit ea1466b

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

build.gradle.kts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,15 @@ buildscript {
2020
apply(plugin = "kotlinx.team.infra")
2121

2222
configure<InfraExtension> {
23-
teamcity {
24-
libraryStagingRepoDescription = project.name
25-
}
26-
2723
publishing {
2824
include(":kotlinx-benchmark-runtime")
2925

3026
libraryRepoUrl = "https://github.com/Kotlin/kotlinx-benchmark"
3127

3228
if (project.findProperty("publication_repository") == "sonatype") {
33-
sonatype {}
29+
sonatype {
30+
libraryStagingRepoDescription = project.name
31+
}
3432
}
3533
}
3634
}

plugin/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ plugins {
2828
kotlin("jvm") version "1.9.0"
2929
}
3030

31-
apply(plugin = "org.jetbrains.kotlin.jvm")
3231
apply(plugin = "kotlinx.team.infra")
3332

3433
configure<InfraExtension> {

settings.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ pluginManagement {
22
repositories {
33
gradlePluginPortal()
44
val kotlin_repo_url: String? by settings
5-
kotlin_repo_url?.let { repoUrl ->
6-
if (repoUrl.isNotEmpty()) {
7-
maven { url = uri(repoUrl) }
8-
}
5+
kotlin_repo_url?.takeIf { it.isNotEmpty() }?.let { repoUrl ->
6+
maven { url = uri(repoUrl) }
97
}
108
}
119
}

0 commit comments

Comments
 (0)