Skip to content

Graphfity task 2 exceptions: ":app does not correspond to any project", " Invocation of 'Task.project' by task ':graphfity' at execution time is unsupported." #4

@lifestreamy

Description

@lifestreamy

Gradle 8.7
Android Studio Jellyfish
Windows 11

  • Root build.gradle:
import com.github.ivancarras.graphfity.plugin.main.GraphfityPluginExtension

buildscript {
    repositories {
        gradlePluginPortal()
        mavenCentral()
        google()
    }
    dependencies {  }
}

plugins {
    id("com.github.ivancarras.graphfity") version "1.1.0"
} 

configure<GraphfityPluginExtension> {
    nodeTypesPath.set("./nodeTypes.json")
}
  • Default nodeTypes.json is present in the root directory.

  • Graphviz is installed and added to path

  • Running
    gradle graphfity
    results in 2 exceptions:
    FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':graphfity'.
> The property provided as projectRootPath: :app does not correspond to any 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 `:graphfity` of type `com.github.ivancarras.graphfity.plugin.task.GraphfityTask`: 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

Having run with --no-configuration-cache option for 30 minutes, the script still produced no output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions