Repository navigation
Conversation
Try to comment out those lines |
|
This will take some additional work due to the overlapping package names. I'll see what I can put together. |
|
@SpaiR I have an initial implementation of the library with java 9 modules implemented. This will take some discussion and review, so I will leave it as a draft for now. Things I had to change to be module compliant:
Key points here are how this breaks backwards compatibility:
Everything else is just moving things into the correct folders for java modules. Screencap of it running on java 11 with modules: Natives build fine locally for me, I'll investigate why github actions for those are failing. |
|
@tlf30 Right now I'm away from the PC, so I did a brief review from the phone to stay in connect. |
|
I will see that I can do about a multi-target release. It may be difficult to get working as gradle does a lot of "magic" when it sees the The change in the package names will be also break backward compatibility, but I think will be important moving forward as more of the security model becomes based on the package name. Let's leave this open, I figured this would be a large discussion that will evolve this PR. |
|
Does it compile and work correctly for you? |
At the moment you can observe that the PR has a lot of merge conflicts. To proceed with a build you need to address them manually. Changes themselves are correct - you can check the latest "checks" for the PR, they finished successfully. |
|
Hello @Frooastside I can confirm this does indeed compile. If you are having build issues please post the error you are getting. As a note: I would recommend against using this branch in any project. This is a proof of concept implementation and the final implementation may be very different. Also note that the master branch has significant updates that you will probably want in any project using imgui-java. |
|
@tlf30 Ok got it to compile finally. I think I pulled the submodules before I switched to this branch. Is there anything I can do to get this done faster? I've read that it is not clear if it will be merged because of the missing backward compatibility, even if I solve all merge conflicts, right? |
|
That is correct. I have begun outlining how to do this without changing the package names and using automatic modules instead. At this point, I can keep the package names the same, but a single internal package has to get renamed, which should not impact anyone using the library, and will ensure backwards compatibility. It does require the restructuring of the project into the Perhaps when I get off work this evening I can look at getting a PR together that will use automatic modules. If I need any assistance I will reach out. I work at a remote camp in the artic and do 12 to 14 hour days. I work 2 weeks on and 2 weeks off, I get to go home on Tuesday next week. So in the meantime I am a bit time limited. With that said, I will see what I can get pulled together. |
|
Hello, please see #105 . If that gets merged in I will close this merge request. I will NOT delete this branch from my repo though as it will act as a good go by for once modules are fully implemented in this library. |
|
Closing as #105 is merged. I will keep the branch for reference for when we fully implement modules. |

@SpaiR I would like to add
Automatic-Module-Nameto the manifests to address #82.I have come up with what seemed to be reasonable module names, but let me know if a different module name would be better.
Keep in mind that for future support when a
module-info.javais added, the name of the module will have to match the folder it is in. For example theimgui-appmodule folder will have to get renamed toio.github.spair.imgui-java-app. But that does not need to happen now, only when themodule-info.javais added later down the road.I had issues testing this as I cannot get the
publishToMavenLocalto work, it complains about signing. Perhaps you can test this if you would like, or could you walk me though getting the publish to maven local to work so I can test.Thanks,
Trevor