Lwjgl Extension
Gradle extension used to configure LWJGL dependencies for a project.
This extension is registered by LwjglPlugin under the name "lwjgl" and exposes a small DSL for:
Choosing the LWJGL version via version.
Controlling how native artifacts are resolved via usePredefinedPlatforms and platforms.
Adding LWJGL modules and presets to
implementation/testImplementationvia the implementation and testImplementation helper functions.
Parameters
The Gradle ObjectFactory used to create lazy Property and ListProperty instances that are compatible with the configuration cache.
The Gradle ProviderFactory used to lazily inspect system properties and derive the current runningPlatform in a configuration-cache-friendly way.
The project's DependencyHandler used internally to register the resolved LWJGL dependencies on the appropriate configurations.
The project's RepositoryHandler used internally to register the LWJGL snapshot Maven repository when snapshot versions are in use.
Constructors
Types
Holds constants used by LwjglExtension.
Properties
Whether the plugin should automatically add a snapshot repository when the configured LWJGL version ends with -SNAPSHOT.
List of LWJGL native classifiers to resolve when usePredefinedPlatforms is enabled.
Lazily computes the current host platform classifier for LWJGL natives.
The name assigned to the automatically-added snapshot repository.
URL of the Maven repository to use for resolving LWJGL snapshot versions.
Controls whether native artifacts should be resolved using platforms.
Functions
Registers LWJGL modules on the api configuration.
Registers LWJGL modules on the compileOnly configuration.
Registers LWJGL modules on the implementation configuration.
Registers LWJGL modules on the specified configuration.
Registers LWJGL modules on the runtimeOnly configuration.
Registers LWJGL modules on the testApi configuration.
Registers LWJGL modules on the testCompileOnly configuration.
Registers LWJGL modules on the testImplementation configuration.
Registers LWJGL modules on the testRuntimeOnly configuration.