Explicit API relaxation
This commit is contained in:
parent
07bde0e593
commit
6526a486f9
@ -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
|
||||
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user