Skip to content

Compilation errors when importing a Gradle project that uses Java modules #1262

Open
@nailujac

Description

@nailujac

Expected Behavior

The project should import correctly and without compilation errors

Current Behavior

The project is imported but eclipse flags compilation errors

Context

When importing a Gradle project that uses Java modules, even though the project is imported correctly, Eclipse marks many compilation errors. I believe the errors in the classes are derived from the errors that appear in the module-info.java file. In this file, most of the required modules have an error cannot be resolved to a module

I've tried everything and can't seem to resolve it. If I run the 'build' task with Gradle, the task completes successfully.

image

Steps to Reproduce

Import this project: https://github.com/sparrowwallet/sparrow (git clone with --recursive option)

Your Environment

  • Eclipse Version: 2023-06 (4.28.0)
  • Buildship: Eclipse Plug-ins for Gradle: 3.1.7
  • Gradle distribution: "Gradle wrapper" ana Version 3.8
  • JDK version: 18.0.2.1 and 17.0.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions