diff --git a/src/main/kotlin/ru/mipt/npm/gradle/commonConfigurations.kt b/src/main/kotlin/ru/mipt/npm/gradle/commonConfigurations.kt index c7fcda8..4492542 100644 --- a/src/main/kotlin/ru/mipt/npm/gradle/commonConfigurations.kt +++ b/src/main/kotlin/ru/mipt/npm/gradle/commonConfigurations.kt @@ -40,7 +40,7 @@ public fun Project.configureKScience( } } - if (explicitApi != null) explicitApiWarning() + if (explicitApi == null) explicitApiWarning() } tasks.withType { kotlinOptions { @@ -86,7 +86,7 @@ public fun Project.configureKScience( } } - if (explicitApi != null) explicitApiWarning() + if (explicitApi == null) explicitApiWarning() } (tasks.findByName("processResources") as? Copy)?.apply { @@ -158,7 +158,7 @@ public fun Project.configureKScience( useJUnitPlatform() } - if (explicitApi != null) explicitApiWarning() + if (explicitApi == null) explicitApiWarning() } }