fx-gson icon indicating copy to clipboard operation
fx-gson copied to clipboard

When I try to use the libary, I get: Kotlin: Module org.hildan.fxgson cannot be found in the module graph

Open BenHerbst opened this issue 3 years ago • 2 comments

When I try to require the libary in my module-info, I get the error: Kotlin: Module org.hildan.fxgson cannot be found in the module graph

BenHerbst avatar Nov 06 '21 13:11 BenHerbst

Hi, thanks for reporting this! Could you please give a bit more information about your use case? Which JDK version are you using? Are you using Kotlin? Gradle?

I wouldn't advise using Gson with Kotlin in general (also Gson itself is not really maintained anymore). If you're using Kotlin, Kotlinx Serialization would be more appropriate, or Moshi if you want something that feels like Gson.

joffrey-bion avatar Nov 07 '21 23:11 joffrey-bion

I use maven, jdk 17 and kotlin

BenHerbst avatar Nov 08 '21 16:11 BenHerbst

I think this is an issue with Gradle when using Kotlin+a modular dependency. See https://github.com/gradle/gradle/issues/17271.

I'm not sure there is anything I can/should do on this library's side.

joffrey-bion avatar Jan 08 '23 13:01 joffrey-bion