diff --git a/plugins/atomicfu/atomicfu-compiler/build.gradle.kts b/plugins/atomicfu/atomicfu-compiler/build.gradle.kts index 5f5ed1eb5fb..7159e63a435 100644 --- a/plugins/atomicfu/atomicfu-compiler/build.gradle.kts +++ b/plugins/atomicfu/atomicfu-compiler/build.gradle.kts @@ -175,12 +175,6 @@ projectTest(jUnitMode = JUnitMode.JUnit5) { dependsOn(":dist") dependsOn(atomicfuJsIrRuntimeForTests) - // Depend on the test task that launches Native tests so that it will also run together with tests - // for all other targets if K/N is enabled - if (kotlinBuildProperties.isKotlinNativeEnabled) { - dependsOn(nativeTest) - } - val localAtomicfuJsIrRuntimeForTests: FileCollection = atomicfuJsIrRuntimeForTests val localAtomicfuJsClasspath: FileCollection = atomicfuJsClasspath val localAtomicfuJvmClasspath: FileCollection = atomicfuJvmClasspath @@ -203,3 +197,11 @@ val nativeTest = nativeTest( customTestDependencies = listOf(atomicfuNativeKlib), compilerPluginDependencies = listOf(atomicfuCompilerPluginForTests) ) + +tasks.named("check") { + // Depend on the test task that launches Native tests so that it will also run together with tests + // for all other targets if K/N is enabled + if (kotlinBuildProperties.isKotlinNativeEnabled) { + dependsOn(nativeTest) + } +} \ No newline at end of file