Make deprecated 'classpath' input Kotlin/DSL user-friendly
This should simplify user migration. ^KT-52189 Fixed
This commit is contained in:
+4
-10
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user