Skip to content

Commit 6f43cbe

Browse files
committed
Update kotlinx.team.infra version
- Fixes problem with non-working publishToBuildLocal - stop using pre-HMPP IDEA import workaround in kotlinx.team.infra
1 parent 6998557 commit 6f43cbe

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id("kotlinx.team.infra") version "0.4.0-dev-80"
2+
id("kotlinx.team.infra") version "0.4.0-dev-81"
33
kotlin("multiplatform") apply false
44
}
55

core/build.gradle.kts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,22 @@ tasks {
304304
exclude("tmp/.cache/expanded/expanded.lock")
305305
})
306306
}
307+
308+
// workaround from KT-61313
309+
withType<Sign>().configureEach {
310+
val pubName = name.removePrefix("sign").removeSuffix("Publication")
311+
312+
// These tasks only exist for native targets, hence findByName() to avoid trying to find them for other targets
313+
314+
// Task ':linkDebugTest<platform>' uses this output of task ':sign<platform>Publication' without declaring an explicit or implicit dependency
315+
findByName("linkDebugTest$pubName")?.let {
316+
mustRunAfter(it)
317+
}
318+
// Task ':compileTestKotlin<platform>' uses this output of task ':sign<platform>Publication' without declaring an explicit or implicit dependency
319+
findByName("compileTestKotlin$pubName")?.let {
320+
mustRunAfter(it)
321+
}
322+
}
307323
}
308324

309325
val downloadWindowsZonesMapping by tasks.registering {

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ kotlin.mpp.applyDefaultHierarchyTemplate=false
2020
# Workaround for Bintray treating .sha512 files as artifacts
2121
# https://github.com/gradle/gradle/issues/11412
2222
systemProp.org.gradle.internal.publish.checksums.insecure=true
23+
24+
# stop using pre-HMPP IDEA import workaround in kotlinx.team.infra
25+
useNativeBuildInfraInIdea=true

0 commit comments

Comments
 (0)