Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes with 2 errors when configuration cache is enabled #148

Open
pkubowicz opened this issue May 8, 2024 · 0 comments
Open

Crashes with 2 errors when configuration cache is enabled #148

pkubowicz opened this issue May 8, 2024 · 0 comments

Comments

@pkubowicz
Copy link

gradle update

> Task :update FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':update'.
> Could not get unknown property 'liquibase' for root project 'liquibase-gradle' of type org.gradle.api.Project.

2: Task failed with an exception.
-----------
* What went wrong:
Configuration cache problems found in this build.

1 problem was found storing the configuration cache.
- Task `:update` of type `org.liquibase.gradle.LiquibaseTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.7/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution

Reproducing:

  1. put org.gradle.configuration-cache=true to your ~/.gradle/gradle.properties
  2. execute gradle update with the following minimal build.gradle.kts
plugins {
  id("org.liquibase.gradle") version "2.2.1"
}

dependencies {
  liquibaseRuntime("org.liquibase:liquibase-core:4.16.1")
  liquibaseRuntime("info.picocli:picocli:4.6.1")
  liquibaseRuntime("mysql:mysql-connector-java:5.1.34")
}

repositories {
  mavenCentral()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant