API Documentation: JniLibraryDependencies

Allows the API and JVM implementation and native implementation dependencies of a JNI library to be specified. It also allows JVM runtime only as well as native link only and runtime only dependencies of a JNI library to be specified.

Properties

No properties.

Methods

Method Description

api(notation)

Adds an JVM API dependency to this library. An API dependency is made visible to consumers that are compiled against this component.

api(notation, action)

Adds an JVM API dependency to this library. An API dependency is made visible to consumers that are compiled against this component.

jvmImplementation(notation)

Adds an JVM implementation dependency to this library. An implementation dependency is not visible to consumers that are compiled against this component.

jvmImplementation(notation, action)

Adds an JVM implementation dependency to this library. An implementation dependency is not visible to consumers that are compiled against this component.

jvmRuntimeOnly(notation, action)

Adds an JVM runtime only dependency to this library. An implementation dependency is only visible to consumers that are running against this component.

jvmRuntimeOnly(notation)

Adds an JVM runtime only dependency to this library. An implementation dependency is only visible to consumers that are running against this component.

nativeImplementation(notation, action)

Adds an native implementation dependency to this component. An implementation dependency is not visible to consumers that are compiled or linked against this component.

nativeImplementation(notation)

Adds an native implementation dependency to this component. An implementation dependency is not visible to consumers that are compiled or linked against this component.

nativeLinkOnly(notation)

Adds an native link only dependency to this component. An link only dependency is not visible to consumers that are compiled or linked against this component.

nativeLinkOnly(notation, action)

Adds an native link only dependency to this component. An link only dependency is not visible to consumers that are compiled or linked against this component.

nativeRuntimeOnly(notation, action)

Adds an native runtime only dependency to this component. An runtime only dependency is visible only to consumers that are running against this component.

nativeRuntimeOnly(notation)

Adds an native runtime only dependency to this component. An runtime only dependency is not visible to consumers that are running against this component.

Property Details

BinaryView<Binary> binaries (read-only)

The binaries for this component.

T dependencies (read-only)

The dependencies of this component.

VariantView<T> variants (read-only)

Configure the variants of this component.

Method Details

void dependencies(Action<? super T> action)

Configure the dependencies of this component.

void dependencies(Closure<Void> closure)

Configure the dependencies of this component.