LwjglExtension

abstract class LwjglExtension @Inject constructor(objects: ObjectFactory, providers: ProviderFactory, dependencies: DependencyHandler, repositories: RepositoryHandler)

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:

Parameters

objects

The Gradle ObjectFactory used to create lazy Property and ListProperty instances that are compatible with the configuration cache.

providers

The Gradle ProviderFactory used to lazily inspect system properties and derive the current runningPlatform in a configuration-cache-friendly way.

dependencies

The project's DependencyHandler used internally to register the resolved LWJGL dependencies on the appropriate configurations.

repositories

The project's RepositoryHandler used internally to register the LWJGL snapshot Maven repository when snapshot versions are in use.

Constructors

Link copied to clipboard
@Inject
constructor(objects: ObjectFactory, providers: ProviderFactory, dependencies: DependencyHandler, repositories: RepositoryHandler)

Types

Link copied to clipboard
object Companion

Holds constants used by LwjglExtension.

Properties

Link copied to clipboard

Whether the plugin should automatically add a snapshot repository when the configured LWJGL version ends with -SNAPSHOT.

Link copied to clipboard
val platforms: ListProperty<String>

List of LWJGL native classifiers to resolve when usePredefinedPlatforms is enabled.

Link copied to clipboard
val runningPlatform: Provider<String>

Lazily computes the current host platform classifier for LWJGL natives.

Link copied to clipboard

The name assigned to the automatically-added snapshot repository.

Link copied to clipboard

URL of the Maven repository to use for resolving LWJGL snapshot versions.

Link copied to clipboard

Controls whether native artifacts should be resolved using platforms.

Link copied to clipboard
val version: Property<String>

LWJGL version to use for all resolved artifacts.

Functions

Link copied to clipboard
fun api(vararg entries: LwjglEntry, wireNativesTo: String? = "runtimeOnly")
fun api(vararg entries: LwjglEntry, wireNativesTo: Named)
fun api(entries: Iterable<LwjglEntry>, wireNativesTo: String? = "runtimeOnly")
fun api(entries: Iterable<LwjglEntry>, wireNativesTo: Named)

Registers LWJGL modules on the api configuration.

Link copied to clipboard
fun compileOnly(vararg entries: LwjglEntry, wireNativesTo: String? = null)
fun compileOnly(vararg entries: LwjglEntry, wireNativesTo: Named)
fun compileOnly(entries: Iterable<LwjglEntry>, wireNativesTo: String? = null)
fun compileOnly(entries: Iterable<LwjglEntry>, wireNativesTo: Named)

Registers LWJGL modules on the compileOnly configuration.

Link copied to clipboard
fun implementation(vararg entries: LwjglEntry, wireNativesTo: String? = "runtimeOnly")
fun implementation(vararg entries: LwjglEntry, wireNativesTo: Named)
fun implementation(entries: Iterable<LwjglEntry>, wireNativesTo: String? = "runtimeOnly")
fun implementation(entries: Iterable<LwjglEntry>, wireNativesTo: Named)

Registers LWJGL modules on the implementation configuration.

Link copied to clipboard
fun into(compileConfiguration: String?, runtimeConfiguration: String?, vararg entries: LwjglEntry)
fun into(compileConfiguration: String?, runtimeConfiguration: String?, entries: Iterable<LwjglEntry>)
fun into(compileConfiguration: String?, runtimeConfiguration: Named?, vararg entries: LwjglEntry)
fun into(compileConfiguration: String?, runtimeConfiguration: Named?, entries: Iterable<LwjglEntry>)
fun into(compileConfiguration: Named?, runtimeConfiguration: String?, vararg entries: LwjglEntry)
fun into(compileConfiguration: Named?, runtimeConfiguration: String?, entries: Iterable<LwjglEntry>)
fun into(compileConfiguration: Named?, runtimeConfiguration: Named?, vararg entries: LwjglEntry)
fun into(compileConfiguration: Named?, runtimeConfiguration: Named?, entries: Iterable<LwjglEntry>)

Registers LWJGL modules on the specified configuration.

Link copied to clipboard
fun runtimeOnly(vararg entries: LwjglEntry)

Registers LWJGL modules on the runtimeOnly configuration.

Link copied to clipboard
fun testApi(vararg entries: LwjglEntry, wireNativesTo: String? = "testRuntimeOnly")
fun testApi(vararg entries: LwjglEntry, wireNativesTo: Named)
fun testApi(entries: Iterable<LwjglEntry>, wireNativesTo: String? = "testRuntimeOnly")
fun testApi(entries: Iterable<LwjglEntry>, wireNativesTo: Named)

Registers LWJGL modules on the testApi configuration.

Link copied to clipboard
fun testCompileOnly(vararg entries: LwjglEntry, wireNativesTo: String? = null)
fun testCompileOnly(vararg entries: LwjglEntry, wireNativesTo: Named)
fun testCompileOnly(entries: Iterable<LwjglEntry>, wireNativesTo: String? = null)
fun testCompileOnly(entries: Iterable<LwjglEntry>, wireNativesTo: Named)

Registers LWJGL modules on the testCompileOnly configuration.

Link copied to clipboard
fun testImplementation(vararg entries: LwjglEntry, wireNativesTo: String? = "testRuntimeOnly")
fun testImplementation(vararg entries: LwjglEntry, wireNativesTo: Named)
fun testImplementation(entries: Iterable<LwjglEntry>, wireNativesTo: String? = "testRuntimeOnly")
fun testImplementation(entries: Iterable<LwjglEntry>, wireNativesTo: Named)

Registers LWJGL modules on the testImplementation configuration.

Link copied to clipboard
fun testRuntimeOnly(vararg entries: LwjglEntry)

Registers LWJGL modules on the testRuntimeOnly configuration.