Any suggestions on where to look/read/ask/learn ho...
# gradle
d
Any suggestions on where to look/read/ask/learn how to create gradle dependencies that are not file-based. Examples: tasks that produce docker images, aws resources, send emails etc. Things with expensive or non-idempotent side effects that should only be done if out of date.
d
That's what
upToDateWhen
is for
It allows you to use any kind of logic you need to calculate whether a task should be considered out of date
If you're defining a custom task class, you can mark anything as an input and Gradle can consider it when deciding if to run the task
g
Maybe Gradle Community slack is better place to ask, a lot of people from Gradle who can help with such deep generic questions This is announcement, but looks that invitation link already expired, I ask about updated one, if you want to join https://discuss.gradle.org/t/introducing-gradle-community-slack/26731