refactor: use magic to hide lint on non-public, inline api

- remove all YukiPrivateApi and @PublishedApi
This commit is contained in:
2023-09-27 18:01:55 +08:00
parent 5093caf46e
commit 6704b06dfa
44 changed files with 63 additions and 250 deletions

View File

@@ -10,21 +10,10 @@ java {
targetCompatibility = JavaVersion.VERSION_17
}
kotlin {
sourceSets {
all {
languageSettings {
optIn(property.project.yukireflection.core.kotlin.optIn.yukiPrivateApi)
}
}
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "17"
freeCompilerArgs = listOf(
"-opt-in=${property.project.yukireflection.core.kotlin.optIn.yukiPrivateApi}",
"-Xno-param-assertions",
"-Xno-call-assertions",
"-Xno-receiver-assertions"