Explicit API relaxation

This commit is contained in:
Alexander Nozik 2022-04-19 10:44:44 +03:00
parent 07bde0e593
commit 6526a486f9
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357
2 changed files with 6 additions and 5 deletions

View File

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Kotlin 1.6.20
- Context receivers enabled
- Ktor 2.0
- ExplicitAPI does not override existing value
### Deprecated

View File

@ -18,8 +18,8 @@ import ru.mipt.npm.gradle.internal.fromJsDependencies
private val defaultJvmArgs: List<String> = listOf("-Xjvm-default=all", "-Xlambdas=indy", "-Xcontext-receivers")
public fun Project.configureKScience(
kotlinVersion: KotlinVersion
){
kotlinVersion: KotlinVersion,
) {
//Common configuration
registerKScienceExtension()
repositories.applyRepos()
@ -40,7 +40,7 @@ public fun Project.configureKScience(
}
}
explicitApiWarning()
if (explicitApi != null) explicitApiWarning()
}
tasks.withType<KotlinJvmCompile> {
kotlinOptions {
@ -86,7 +86,7 @@ public fun Project.configureKScience(
}
}
explicitApiWarning()
if (explicitApi != null) explicitApiWarning()
}
(tasks.findByName("processResources") as? Copy)?.apply {
@ -158,7 +158,7 @@ public fun Project.configureKScience(
useJUnitPlatform()
}
explicitApiWarning()
if (explicitApi != null) explicitApiWarning()
}
}