Open KDanisme opened 1 year ago
Hi, same problem with gradle version 7.6. It seems like, the problem is related to liquibase plugin version 2.2.0, because it works with version 2.1.0.
Ran into the same issue with 2.2.0 today. Any updates on this?
Hi, I have the same problem when using the plugin together with the org.graalvm.buildtools.native plugin. Whatever the command, the error is the same. Example with TagCommand:
* What went wrong:
Execution failed for task ':tag'.
> Cannot fingerprint input property 'liquibaseCommand': value 'org.liquibase.gradle.liquibase.command.TagCommand@38877c3a' cannot be serialized.
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':tag'.
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:38)
...
Caused by: org.gradle.internal.snapshot.ValueSnapshottingException: Could not serialize value of type TagCommand
at org.gradle.internal.snapshot.impl.AbstractValueProcessor.newValueSerializationException(AbstractValueProcessor.java:187)
at org.gradle.internal.snapshot.impl.AbstractValueProcessor.javaSerialization(AbstractValueProcessor.java:178)
at org.gradle.internal.snapshot.impl.AbstractValueProcessor.processValue(AbstractValueProcessor.java:157)
at org.gradle.internal.snapshot.impl.DefaultValueSnapshotter.snapshot(DefaultValueSnapshotter.java:47)
at org.gradle.internal.execution.impl.DefaultInputFingerprinter$InputCollectingVisitor.visitInputProperty(DefaultInputFingerprinter.java:107)
... 70 more
Caused by: java.io.NotSerializableException: org.liquibase.gradle.liquibase.command.TagCommand
at org.gradle.internal.snapshot.impl.AbstractValueProcessor.javaSerialization(AbstractValueProcessor.java:175)
... 73 more
Environment:
plugins {
id "java"
id "org.springframework.boot" version "3.1.6"
id "io.spring.dependency-management" version "1.1.4"
id 'org.liquibase.gradle' version '2.2.1'
id 'org.graalvm.buildtools.native' version '0.9.28'
}
...
However, if I remove the org.graalvm.buildtools.native plugin, everything works fine. Any ideas ?
I encounter the same problem as gustabart with slightly different versions:
id 'org.springframework.boot' version '3.2.0' id 'io.spring.dependency-management' version '1.1.0' id 'org.liquibase.gradle' version '2.2.1' id 'org.graalvm.buildtools.native' version '0.9.23'
any workaround till the time the issue is fixed?
I am getting the same error without org.graalvm.buildtools.native
plugin as well.
A fix for this would be great, since the liquibase task forces any task downstream of it to run every time.
Also, it may be that the new and shiny version using liquibase 4.28.0 - if it avoids this issue - will introduce new issues that will take some time to iron out.
When using Gradle 8.1, and running any liquibase command im getting this error: