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

org.jetbrains.kotlin.gradle.plugin.mpp.AbstractKotlinCompilationToRunnableFiles.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0-RC
Show newest version
/*
 * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

@file:Suppress("DEPRECATION")

package org.jetbrains.kotlin.gradle.plugin.mpp

import org.gradle.api.file.FileCollection
import org.jetbrains.kotlin.gradle.dsl.KotlinCommonOptions
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilationToRunnableFiles
import org.jetbrains.kotlin.gradle.plugin.mpp.compilationImpl.KotlinCompilationImpl

@Deprecated("Use KotlinCompilation instead")
abstract class AbstractKotlinCompilationToRunnableFiles
internal constructor(compilation: KotlinCompilationImpl) : AbstractKotlinCompilation(compilation), KotlinCompilationToRunnableFiles {

    final override val runtimeDependencyConfigurationName: String
        get() = compilation.runtimeDependencyConfigurationName ?: error("$compilation: Missing 'runtimeDependencyConfigurationName'")

    final override var runtimeDependencyFiles: FileCollection
        get() = compilation.runtimeDependencyFiles ?: error("$compilation: Missing 'runtimeDependencyFiles'")
        set(value) {
            compilation.runtimeDependencyFiles = value
        }
}

internal typealias DeprecatedAbstractKotlinCompilationToRunnableFiles = AbstractKotlinCompilationToRunnableFiles




© 2015 - 2024 Weber Informatics LLC | Privacy Policy