Closed favna closed 10 months ago
Well I can close this again. Truly I have no idea what the hell happened because I've been facing this issue for a few days now but just now I updated the Gradle plugin from 2.0.4 to 2.2.0 and that seems to have fixed it. Thing is, I'm 100% sure I had v2.2.0 before, though back then my build.gradle
was still using Groovy syntax and so had the Liquibase config is a very different way.
FWIW I'll stick to build.gradle.kts
from now on and I'm happy that the issue is resolved.
Adding some insight for posterity...
liquibase-gradle-plugin
v2.1.1 calls JavaExec#getMain()
on a logging statement here.
This method existed in Gradle API 7.0, but it appears to have been removed in Gradle API 8.0.
tl;dr liquibase-gradle-plugin
v2.1.1 is not compatible with Gradle 8+.
Hai all,
I'm setting a Spring Boot 3 project with Liquibase 4 and Gradle 8 and no matter what I try in terms of configuring Liquibase in my build.gradle I always get the following error when running any of the liquibase Gradle scripts:
My
build.gradle.kts
is as follows:I would really appreciate it if someone can tell me what I'm doing wrong that is causing this error. For the life of me I cannot find anything regarding this online.
I have created a GitHub repository where this issue can be reproduced: https://github.com/favna/congenial-fishstick/tree/liquibase-issue. Note that you check out this
liquibase-issue
branch as I'm reusing this same repository from an earlier issue.