Restrict methos in Tasks.kt to internal

This commit is contained in:
Lucas Smaira
2018-07-27 14:32:43 +01:00
committed by Sergey Igushkin
parent 3588547d8c
commit 5e515590cb
@@ -148,7 +148,7 @@ abstract class AbstractKotlinCompile<T : CommonCompilerArguments>() : AbstractKo
protected val additionalClasspath = arrayListOf<File>()
@get:Internal // classpath already participates in the checks
val compileClasspath: Iterable<File>
internal val compileClasspath: Iterable<File>
get() = (classpath + additionalClasspath)
.filterTo(LinkedHashSet(), File::exists)
@@ -201,7 +201,7 @@ abstract class AbstractKotlinCompile<T : CommonCompilerArguments>() : AbstractKo
@Suppress("UNCHECKED_CAST")
@get:Internal
val friendTask: AbstractKotlinCompile<T>?
internal val friendTask: AbstractKotlinCompile<T>?
get() = friendTaskName?.let { project.tasks.findByName(it) } as? AbstractKotlinCompile<T>
/** Classes directories that are not produced by this task but should be consumed by