Skip to content

Commit fd789a7

Browse files
lamba92Lamba92
authored and
Lamba92
committed
good i guess?
1 parent 4054e4b commit fd789a7

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

build.gradle.kts

-14
Original file line numberDiff line numberDiff line change
@@ -136,20 +136,6 @@ fun KotlinMultiplatformExtension.publish(vararg targets: Iterable<KotlinTarget>)
136136
fun KotlinMultiplatformExtension.publish(vararg metadata: KotlinCommonCompilation) =
137137
metadata.toList()
138138

139-
infix fun Iterable<KotlinOnlyTarget<KotlinCommonCompilation>>.onlyOn(os: OS) = configure(this) {
140-
mavenPublication {
141-
tasks.withType<AbstractPublishToMaven>().all {
142-
onlyIf {
143-
publication != this@mavenPublication || when (os) {
144-
LINUX -> OperatingSystem.current().isLinux
145-
MAC -> OperatingSystem.current().isMacOsX
146-
WINDOWS -> OperatingSystem.current().isWindows
147-
}
148-
}
149-
}
150-
}
151-
}
152-
153139
infix fun Iterable<KotlinTarget>.onlyOn(os: OS) = configure(this) {
154140
mavenPublication {
155141
tasks.withType<AbstractPublishToMaven>().all {

0 commit comments

Comments
 (0)