Zak Taccardi
06/21/2024, 5:14 AMProvider<String>, which needs to be generated by a producer task.
For ./gradlew consumerTask - I’m seeing:
/Users/zak/Development/git/myproject/build/output.txt (No such file or directory)
What am I doing wrong?ephemient
06/21/2024, 5:37 AMephemient
06/21/2024, 5:46 AMthis.input = providers.fileContents(producerTask.flatMap { it.outputFile }).asText.orElse("")
but it falls back to "" at configuration time, so it never gets the real output at runtimeephemient
06/21/2024, 5:51 AMMikhail Lopatkin
06/21/2024, 10:30 AMmap to flatMap {it.outputFile}.map {...} I'm hitting https://github.com/gradle/gradle/issues/29335, and there changing from Provider to RegularFileProperty helps. I'm not sure why CC decided to reduce the producerTask.map to value, will investigate it further.Zak Taccardi
06/21/2024, 2:04 PMZak Taccardi
06/21/2024, 2:05 PM