org.jetbrains.kotlin.gradle.plugin.mpp.AbstractKotlinCompilationToRunnableFiles.kt Maven / Gradle / Ivy
/*
* 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