Closed ias-dt closed 10 years ago
The output properties of the task are not all serializable (meaning they do not implement Serializable
). That's why you see the exception. You will not need to add the up-to-date check in your code. The task does not define any outputs so it will never be UP-TO-DATE.
"The task does not define any outputs so it will never be UP-TO-DATE."
Deployable
now implements Serializable
so you can give it another shot if you want to reconfigure task inputs/outputs.
If you wanted to make sure that the output (which is the deployed artifact on a remote server) is the same as your local artifact (your input), you'd have to compare file hashes. You can't really say if the remote artifact hasn't been changed by somebody else even if it would have the same name. Just using the artifact as input and output wouldn't be a accurate reflection of reality from my perspective.
Cargo Gradle Plugin 0.6.1 Cargo 1.4.4 Gradle 1.9
We want to disable the task outputs up to date check via
The deploy task should only run when the input has changed and not always due to no declared outputs. But when we call
this fails with the following stacktrace: