Migration from liquibase.gradle plugin from 2.2.2 to 3.0.1 causes "Unable to load class 'liquibase.Scope'." error
I'm trying to upgrade the liquibase gradle plugin from version 2.2.2 to 3.0.1.
Setup
SDK 21.0.9
Gradle 8.14
Brand new IntelliJ Kotlin project
Version 2.2.2 - BUILD SUCCESSFUL
plugins {
kotlin("jvm") version "2.2.20"
id("org.liquibase.gradle") version "2.2.2"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
liquibaseRuntime("org.liquibase:liquibase-core:4.33.0")
liquibaseRuntime("org.postgresql:postgresql")
liquibaseRuntime("org.yaml:snakeyaml")
liquibaseRuntime("ch.qos.logback:logback-core")
liquibaseRuntime("ch.qos.logback:logback-classic")
liquibaseRuntime("info.picocli:picocli:4.7.5")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
Version 3.0.1 - FAILURE: Build failed with an exception.
plugins {
kotlin("jvm") version "2.2.20"
id("org.liquibase.gradle") version "3.0.1"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
liquibaseRuntime("org.liquibase:liquibase-core:4.33.0")
liquibaseRuntime("org.postgresql:postgresql")
liquibaseRuntime("org.yaml:snakeyaml")
liquibaseRuntime("ch.qos.logback:logback-core")
liquibaseRuntime("ch.qos.logback:logback-classic")
liquibaseRuntime("info.picocli:picocli:4.7.5")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
Error message:
Unable to load class 'liquibase.Scope'.
* What went wrong:
liquibase/Scope
> liquibase.Scope
Resources