From e007ac9c7a5515e8e8115c6b1eb7f57b92fcdd27 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Mon, 11 Oct 2021 14:25:02 +0300 Subject: [PATCH] Fix duplicating native dependency --- CHANGELOG.md | 1 + gradle/libs.versions.toml | 2 +- src/main/kotlin/ru/mipt/npm/gradle/KScienceNativePlugin.kt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4ee22c..5a8dca9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed ### Fixed +- remove `nativeMain` dependency from `nativeTest` ### Security diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 5ff2753..3dc1993 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -tools = "0.10.4" +tools = "0.10.5" kotlin = "1.6.0-M1" atomicfu = "0.16.2" binary-compatibility-validator = "0.7.1" diff --git a/src/main/kotlin/ru/mipt/npm/gradle/KScienceNativePlugin.kt b/src/main/kotlin/ru/mipt/npm/gradle/KScienceNativePlugin.kt index 36c92fa..d79f27b 100644 --- a/src/main/kotlin/ru/mipt/npm/gradle/KScienceNativePlugin.kt +++ b/src/main/kotlin/ru/mipt/npm/gradle/KScienceNativePlugin.kt @@ -34,7 +34,7 @@ public class KScienceNativePlugin : Plugin { } val nativeTest by creating { - dependsOn(nativeMain) + //should NOT depend on nativeMain because automatic dependency by plugin dependsOn(commonTest) } -- 2.34.1