Skip to content

Crashes with 2 errors when configuration cache is enabled #148

Open
@pkubowicz

Description

@pkubowicz
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()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions