Skip to content

Commit

Permalink
Distinguish ktorTargets from allTargets
Browse files Browse the repository at this point in the history
  • Loading branch information
joffrey-bion committed Mar 10, 2024
1 parent 788717d commit 235051f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion gradle/plugins/src/main/kotlin/Targets.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import org.jetbrains.kotlin.gradle.dsl.*
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget

fun KotlinMultiplatformExtension.allTargets() {
ktorTargets()
}

fun KotlinMultiplatformExtension.ktorTargets() {
jvm()
js {
browser()
Expand Down
2 changes: 1 addition & 1 deletion krossbow-websocket-ktor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
description = "Multiplatform implementation of Krossbow's WebSocket API using Ktor's web sockets."

kotlin {
allTargets()
ktorTargets()

sourceSets {
all {
Expand Down

0 comments on commit 235051f

Please sign in to comment.