Skip to content

Error when importing multi-module project in IDEA when using this plugin in combination with 'java-test-fixtures' #15

@michael-spahn

Description

@michael-spahn

I am using this plugin in a multi-module project.

If I add the 'java-test-fixtures' plugin to certain sub-module (apply plugin: 'java-test-fixtures' ) and then try to load the gradle changes into IntelliJ IDEA I will get the following error:

Could not resolve all dependencies for configuration ':[...]:testRuntimeClasspath'. Failed to transform [...]-test-fixtures.jar (project :[...]) to match attributes {artifactType=jar, javaModule=true, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.version=11, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. Execution failed for ExtraModuleInfoTransform: [...]-test-fixtures.jar. java.io.FileNotFoundException: [...]-test-fixtures.jar (No such file or directory)

Running gradle build before loading the changes into IDEA works, but if for some reason the build does not run successfully it is very cumbersome to fix it without having the gradle project properly imported into the IDE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions