org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerToolOptionsHelper.kt Maven / Gradle / Ivy
// DO NOT EDIT MANUALLY!
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
// To regenerate run 'generateGradleOptions' task
@file:Suppress("RemoveRedundantQualifierName", "Deprecation", "Deprecation_Error", "DuplicatedCode")
package org.jetbrains.kotlin.gradle.dsl
internal object KotlinCommonCompilerToolOptionsHelper {
internal fun fillCompilerArguments(
from: org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerToolOptions,
args: org.jetbrains.kotlin.cli.common.arguments.CommonToolArguments,
) {
args.allWarningsAsErrors = from.allWarningsAsErrors.get()
args.suppressWarnings = from.suppressWarnings.get()
args.verbose = from.verbose.get()
args.freeArgs += from.freeCompilerArgs.get()
}
internal fun syncOptionsAsConvention(
from: org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerToolOptions,
into: org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerToolOptions,
) {
into.allWarningsAsErrors.convention(from.allWarningsAsErrors)
into.suppressWarnings.convention(from.suppressWarnings)
into.verbose.convention(from.verbose)
into.freeCompilerArgs.addAll(from.freeCompilerArgs)
}
}