The package com.inductiveautomation.ignition.gateway.util is accessible from more than one module

Hello,
i have a problem importing some gateway packages after updating the compiler version to Java 17. I get the error:
The package com.inductiveautomation.ignition.gateway.util is accessible from more than one module: <unnamed>, common, gateway.api

The packages are imported by a dependency to the driver api.

grafik

Am i doing something wrong, or is this a problem with module definitions in the api?

Nothing changed between 8.1 and 8.3 regarding JPMS... still Java 17, still doing bad practices like multiple JARs/artifacts containing a com.inductiveautomation.ignition.gateway.util package.

Is there a method to use gateway-api and common in the same project? The only way to compile my driver is setting the compiler compliance level to 1.8 but i am not sure about side effects of that setting.

Surely.

This has to be some Eclipse IDE problem.

This advice came from an LLM, so if it's total nonsense that's why. I don't have Eclipse installed and haven't used it in a decade or more.

For Eclipse:

  1. Right-click your project > Properties > Java Build Path.
  2. Go to the Libraries tab.
  3. Look at the list. You will likely see Modulepath and Classpath.
  4. If your Ignition SDK jars (like common, gateway-api, or Maven Dependencies) are listed under Modulepath, drag and drop them into Classpath.
  5. Apply and Close. Clean and Rebuild.

Thank you, that helped. The dialog looks a bit different, but setting the maven dependencies as not-modular worked.