All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerToolOptionsHelper.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0-RC
Show newest version
// 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)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy