https://kotlinlang.org logo
Title
g

gbaldeck

03/21/2021, 10:26 PM
I have a Gradle task that depends on the
packageMsi
task.
packageMsi
works fine when run by itself, but when I run my task that depends on it
packageMsi
fails with
A problem was found with the configuration of task ':packageMsi' (type 'AbstractJPackageTask').
File 'C:\my_workspace\grim-locations\build\compose\default-icons\0.4.0-build173\icon-windows.ico' specified for property 'iconFile' does not exist.
Has anyone else experienced this?
j

jim

03/22/2021, 7:28 AM
Doesn't sound familiar. If you have a minimal repro that demonstrates the issue, please go ahead and file a bug (https://github.com/JetBrains/compose-jb/issues)
o

olonho

03/22/2021, 7:46 AM
@alexey.tsvetkov ^^^
a

alexey.tsvetkov

03/22/2021, 2:31 PM
@gbaldeck I was not able to reproduce the described issue. Is it possible that the task or one of its dependencies cleans the build directory?
g

gbaldeck

03/22/2021, 6:07 PM
@alexey.tsvetkov yes it does clean the directory, but even if it was cleaned it should work, correct? Here's the repo: https://github.com/recursiveg87/Grim-Locations I have commented out the
dependsOn("clean")
of the
createProductionBundle
task for now. I will create a bug ticket later this week.
Now that I'm looking at the task again, it could be because clean and packageMsi are being run in parallel if I havent setup the task correctly