Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle build (zip) #2235

Merged
merged 3 commits into from
Mar 27, 2024
Merged

Conversation

JNightRider
Copy link
Contributor

@JNightRider JNightRider commented Mar 26, 2024

Hi

This PR resolves dependency issues with lwjgl (2 or 3) reported on the forum when trying to use the zip version of JME3.

The reason for these problems is that jme3-lwjgl3 only loaded the dependencies at runtime and when compiling JME3 it did not export the jar files, this can be solved by changing the way of adding the dependencies:

api "org.lwjgl:lwjgl:${lwjgl3Version}:natives-windows"

Should we use jme3-lwjgl3 by default in the examples? (I think it's already quite stable)

Copy link
Member

@stephengold stephengold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Although I want to encourage developers to use jme3-lwjgl3 instead of jme3-lwjgl, the jme3-examples app chooser still works better with jme3-lwjgl. This PR reverts the unintended change to jme3-examples and the dist JAR that was included in PR #2153.

Meanwhile, we should also discourage people from relying the dist JAR (at GitHub) to obtain JME libraries and dependencies, since it doesn't include all of them. People should download JME libraries and dependencies from Maven Central instead, preferably using Gradle build scripts.

@scenemax3d scenemax3d added this to the v3.7.0 milestone Mar 27, 2024
@scenemax3d scenemax3d merged commit 9452078 into jMonkeyEngine:master Mar 27, 2024
14 checks passed
@JNightRider JNightRider deleted the Gradle_Build branch March 27, 2024 20:01
scenemax3d pushed a commit that referenced this pull request Mar 30, 2024
* lwjgl dependency issues
@stephengold stephengold added the buildscript An issue with the buildscript label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buildscript An issue with the buildscript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants