Fix explicit api application

This commit is contained in:
Alexander Nozik 2022-05-17 10:13:17 +03:00
parent e3ecfb54c9
commit eed0f274c7
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357

View File

@ -40,7 +40,7 @@ public fun Project.configureKScience(
}
}
if (explicitApi != null) explicitApiWarning()
if (explicitApi == null) explicitApiWarning()
}
tasks.withType<KotlinJvmCompile> {
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()
}
}