Closed TooikLeChevalier closed 2 years ago
Unirest is just a plain old library, it's not explicitly designed for modules and I am unfamiliar with whatever '''fr.eclypsegames.merged.module''' is (it's not part of unirest).
Can you provide a project somewhere with the issues re-created? Not with Gradle either, just plain old Maven.
fr.eclypsegames
is the call of my package and merged.module
I think is the call of step to compile commande into .app
this is all step is use for create .app and during this process create auto an merged.module
> Task :compileJava
> Task :processResources
> Task :classes
> Task :jar
> Task :prepareMergedJarsDir
> Task :createMergedModule
> Task :createDelegatingModules
> Task :prepareModulesDir
> Task :jlink
> Task :jpackageImage
> Task :jpackage
moreover I didn't have the possibility to recreate in Maven because I didn't know how use
In addition I send more information :
HttpResponse<String> response = Unirest.post(uri).header("accept", "application/json").header("Content-Type", "application/json").body(new JsonNode(json)).asString();
uri
: is https address
json
: contains json argument for POST methode
module-info.java
module fr.eclypsegames.eclypselauncher {
requires javafx.controls;
requires javafx.fxml;
requires java.desktop;
requires javafx.web;
requires java.net.http;
requires com.google.gson;
requires unirest.java;
requires unirest.object.mappers.gson;
opens fr.eclypsegames.eclypselauncher to javafx.fxml, com.google.gson, unirest.java, unirest.object.mappers.gson;
exports fr.eclypsegames.eclypselauncher;
}
build.gradle dependencies
dependencies {
implementation("com.google.code.gson:gson:2.9.0")
implementation("com.konghq:unirest-java:3.13.6")
implementation('com.konghq:unirest-object-mappers-gson:3.13.6')
}
This appears to be some artifact of your launcher or environment. You need Unirest and all of it's dependencies to be on the class path and allowed across modules. There isn't anything special about unirest itself in regards to dependencies. It's quite ordinary. I have no insights into what is happening inside your code.
You probably need to adjust the creeation of the merged modules to include gson. For us it works fine with modularity https://github.com/JabRef/jabref/blob/main/build.gradle
Describe the bug does not read module com.google.gson
To Reproduce I try to create JavaFX project with request send / receive data from my website when I run on intellij by gradle it's work normally. but when I turn on .app my project and run it makes an error like this :
and if y retry to send agin the data the error turn on :
Environmental Data:
module-info.java
)