based on this answer, Tasks are UP-TO-DATE so long as the inputs and outputs don’t change.
But i just add this task finalized by existing task
def releaseTasks = tasks.findAll { task -> task.name.toLowerCase().contains("assemblerelease") }
if (releaseTasks) {
def firstReleaseTask = releaseTasks.iterator().next()
firstReleaseTask.finalizedBy tasks.named("oldReleases")
}
Previous build are success, iam not run gradlew clean
, iam not changing src folder, but the entire build run from over when i run gradlew assemble
again.
Question: how to keep the build cache indicator ? because i need 30+ mins to finish build from over