From eed0f274c7d791da47b54dab2cf0516267e86a76 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Tue, 17 May 2022 10:13:17 +0300 Subject: [PATCH] Fix explicit api application --- src/main/kotlin/ru/mipt/npm/gradle/commonConfigurations.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() } }