Make deprecated 'classpath' input Kotlin/DSL user-friendly

This should simplify user migration.

^KT-52189 Fixed
This commit is contained in:
Yahor Berdnikau
2022-04-26 16:00:27 +02:00
committed by Space
parent f95d1d89f1
commit 78b23eea10
@@ -528,16 +528,10 @@ abstract class KotlinCompile @Inject constructor(
"Replaced with 'libraries' input",
replaceWith = ReplaceWith("libraries")
)
fun setClasspath(classpath: FileCollection) {
libraries.setFrom(classpath)
}
@Deprecated(
"Replaced with 'libraries' input",
replaceWith = ReplaceWith("libraries")
)
@Internal
fun getClasspath(): FileCollection = libraries
@get:Internal
var classpath: FileCollection
set(value) = libraries.setFrom(value)
get() = libraries
@get:Input
abstract val useKotlinAbiSnapshot: Property<Boolean>