LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.81k stars 639 forks source link

Typing ERROR Contributed to Can't build #997

Closed yuxiangll closed 1 month ago

yuxiangll commented 3 months ago

Version

3.3.4

Platform

macOS arm64

JDK

Zulu OpenJDK 21.0.4

Module

LWJGL Croe

Bug description

7ee1b65029bf65abfb792e48883c8c54 You Typed double ":" ,and one ":" is enough on the official website download

Stacktrace or crash log output

No response

TheMrMilchmann commented 3 months ago

Hi @yuxiangll, Without more information, I won't be able to comment on the error you were having. However, the snippet in question is correct:

The string notation for dependencies looks roughly like this:

<group>:<artifact>(:<version>(:<classifier>)?)?

We don't need to declare the versions for the individual dependencies because they are resolved from the BOM platform dependency. However, the dependencies for the native artifacts use classifiers for the different supported platforms. Thus, to include the correct natives dependency, we must declare the classifier, but we can still omit the version by simply using the empty string instead of a version number. This effectively leaves us with the syntax:

<group>:<artifact>::<classifier>

If still believe, you were facing an error related to this issue specifically, please provide us with more information (such as a stacktrace, logs, and, ideally, an MCVE).