Skip to content

Commit a8e376f

Browse files
committed
Change AbstractCreateAppCdsArchiveTask.dependencyFiles to be a regular property.
1 parent 6aad554 commit a8e376f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractCreateAppCdsArchiveTask.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ abstract class AbstractCreateAppCdsArchiveTask @Inject constructor(
3636
// Can't just use appImageRootDir because the AppCDS archive needs to be excluded
3737
@Suppress("unused")
3838
@get:InputFiles
39-
internal val dependencyFiles: Provider<FileTree> = provider {
39+
internal val dependencyFiles: FileTree get() {
4040
// If the app image root directory doesn't exist, return an empty file tree
4141
appImageRootDir.get().let {
4242
if (!it.asFile.isDirectory) {
43-
return@provider it.asFileTree
43+
return it.asFileTree
4444
}
4545
}
4646

4747
val appCdsArchiveFile = appCdsArchiveFile.get().relativeTo(appImageRootDir.get().asFile).path
48-
appImageRootDir.get().asFileTree.matching { it.exclude(appCdsArchiveFile) }
48+
return appImageRootDir.get().asFileTree.matching { it.exclude(appCdsArchiveFile) }
4949
}
5050

5151
@TaskAction

0 commit comments

Comments
 (0)