Skip to content

Commit

Permalink
[Gradle] Init configurationToResolve during class initialisation
Browse files Browse the repository at this point in the history
This should prevent from accessing transient and potentially nullable
`kotlinSourceSet` for up-to-date checks.

^KT-57460 Verification Pending
  • Loading branch information
antohaby committed Mar 21, 2023
1 parent 468f2b1 commit 1b7a243
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ open class MetadataDependencyTransformationTask
@get:PathSensitive(PathSensitivity.RELATIVE)
@get:IgnoreEmptyDirectories
@get:NormalizeLineEndings
internal val configurationToResolve: FileCollection get() = kotlinSourceSet.internal.resolvableMetadataConfiguration
internal val configurationToResolve: FileCollection = project.filesProvider { kotlinSourceSet.internal.resolvableMetadataConfiguration }

@Suppress("unused") // Gradle input
@get:InputFiles
Expand Down

0 comments on commit 1b7a243

Please sign in to comment.