Skip to content

Commit

Permalink
Prefer @classpath over @CompileClasspath for Kotlin classpath
Browse files Browse the repository at this point in the history
as Kotlin metadata is stored as resources and required by compilation

Signed-off-by: Paul Merlin <paul@gradle.com>
  • Loading branch information
eskatos committed Oct 11, 2019
1 parent 6516f3a commit 7baa2a9
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -23,7 +23,7 @@ import org.gradle.api.file.FileCollection
import org.gradle.api.file.SourceDirectorySet
import org.gradle.api.provider.Provider
import org.gradle.api.tasks.CacheableTask
import org.gradle.api.tasks.CompileClasspath
import org.gradle.api.tasks.Classpath
import org.gradle.api.tasks.InputFiles
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.OutputDirectory
Expand All @@ -46,7 +46,7 @@ abstract class CompilePrecompiledScriptPluginPlugins : DefaultTask(), SharedAcce
internal
lateinit var hashedClassPath: HashedClassPath

@get:CompileClasspath
@get:Classpath
val classPathFiles: FileCollection
get() = hashedClassPath.classPathFiles

Expand Down

0 comments on commit 7baa2a9

Please sign in to comment.