Remove redundant compiler argument for context parameter
This commit is contained in:
@@ -10,18 +10,14 @@ import tapmoc.configureJavaCompatibility
|
|||||||
|
|
||||||
fun Project.configureKotlin() {
|
fun Project.configureKotlin() {
|
||||||
configureJavaCompatibility(mihonx.versions.java.get().toInt())
|
configureJavaCompatibility(mihonx.versions.java.get().toInt())
|
||||||
|
|
||||||
kotlin {
|
|
||||||
compilerOptions {
|
|
||||||
freeCompilerArgs.add("-Xcontext-parameters")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("Unused")
|
||||||
private fun Project.kotlin(block: KotlinBaseExtension.() -> Unit) {
|
private fun Project.kotlin(block: KotlinBaseExtension.() -> Unit) {
|
||||||
extensions.configure(block)
|
extensions.configure(block)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("Unused")
|
||||||
private fun KotlinBaseExtension.compilerOptions(block: KotlinCommonCompilerOptions.() -> Unit) {
|
private fun KotlinBaseExtension.compilerOptions(block: KotlinCommonCompilerOptions.() -> Unit) {
|
||||||
if (this is HasConfigurableKotlinCompilerOptions<*>) compilerOptions(block)
|
if (this is HasConfigurableKotlinCompilerOptions<*>) compilerOptions(block)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user