Skip to content

Commit

Permalink
remove plugin applied twice and teamcity block
Browse files Browse the repository at this point in the history
  • Loading branch information
wldeh committed Sep 7, 2023
1 parent 4fb6845 commit ea1466b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
8 changes: 3 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,15 @@ buildscript {
apply(plugin = "kotlinx.team.infra")

configure<InfraExtension> {
teamcity {
libraryStagingRepoDescription = project.name
}

publishing {
include(":kotlinx-benchmark-runtime")

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

if (project.findProperty("publication_repository") == "sonatype") {
sonatype {}
sonatype {
libraryStagingRepoDescription = project.name
}
}
}
}
Expand Down
1 change: 0 additions & 1 deletion plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ plugins {
kotlin("jvm") version "1.9.0"
}

apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "kotlinx.team.infra")

configure<InfraExtension> {
Expand Down
6 changes: 2 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ pluginManagement {
repositories {
gradlePluginPortal()
val kotlin_repo_url: String? by settings
kotlin_repo_url?.let { repoUrl ->
if (repoUrl.isNotEmpty()) {
maven { url = uri(repoUrl) }
}
kotlin_repo_url?.takeIf { it.isNotEmpty() }?.let { repoUrl ->
maven { url = uri(repoUrl) }
}
}
}
Expand Down

0 comments on commit ea1466b

Please sign in to comment.