Skip to content

Commit

Permalink
Fix publication config
Browse files Browse the repository at this point in the history
  • Loading branch information
e5l committed Nov 6, 2023
1 parent 8daecf7 commit 4d00349
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions buildSrc/src/main/kotlin/Publication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,16 @@ fun Project.configurePublication() {
}
}
}

val publishLinuxX64PublicationToMavenRepository = tasks.findByName("publishLinuxX64PublicationToMavenRepository")
val signLinuxArm64Publication = tasks.findByName("signLinuxArm64Publication")
if (publishLinuxX64PublicationToMavenRepository != null && signLinuxArm64Publication != null) {
publishLinuxX64PublicationToMavenRepository.dependsOn(signLinuxArm64Publication)
}

val publishLinuxArm64PublicationToMavenRepository = tasks.findByName("publishLinuxArm64PublicationToMavenRepository")
val signLinuxX64Publication = tasks.findByName("signLinuxX64Publication")
if (publishLinuxArm64PublicationToMavenRepository != null && signLinuxX64Publication != null) {
publishLinuxArm64PublicationToMavenRepository.dependsOn(signLinuxX64Publication)
}
}
3 changes: 2 additions & 1 deletion ktor-utils/js/src/io/ktor/util/logging/KtorSimpleLoggerJs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import io.ktor.util.*
@Suppress("FunctionName")
public actual fun KtorSimpleLogger(name: String): Logger = object : Logger {

@OptIn(kotlin.ExperimentalStdlibApi::class)
override val level: LogLevel = when (PlatformUtils.IS_NODE) {
true -> runCatching { js("process.env.KTOR_LOG_LEVEL") as String? }
.getOrNull()
?.let { rawLevel: String -> LogLevel.entries.firstOrNull { it.name == rawLevel } }
?.let { rawLevel: String -> LogLevel.values().firstOrNull { it.name == rawLevel } }
?: LogLevel.INFO

false -> LogLevel.TRACE
Expand Down

0 comments on commit 4d00349

Please sign in to comment.