api / org.gradle.api.attributes / Usage

Usage

@Incubating interface Usage : Named

Represents the usage of a configuration. Typical usages include compilation or runtime. This interface allows the user to customize usages by implementing this interface.

Since
3.4

Properties

C_PLUS_PLUS_API

static val C_PLUS_PLUS_API: String

The C++ API of a library, packaged as header directories.

JAVA_API

static val JAVA_API: String

The Java API of a library, packaged as class path elements, either a JAR or a classes directory.

JAVA_API_CLASSES

static val JAVA_API_CLASSES: String

The Java API of a library, packaged as class path elements, either a JAR or a classes directory. Should not include resources, but may.

JAVA_RUNTIME

static val JAVA_RUNTIME: String

The Java runtime of a component, packaged as class path elements, either a JAR or a classes directory.

JAVA_RUNTIME_CLASSES

static val JAVA_RUNTIME_CLASSES: String

The Java runtime classes of a component, packaged as class path elements, either a JAR or a classes directory. Should not include resources, but may.

JAVA_RUNTIME_JARS

static val JAVA_RUNTIME_JARS: String

The Java runtime of a component, packaged as JAR only. Must not include classes directories.

JAVA_RUNTIME_RESOURCES

static val JAVA_RUNTIME_RESOURCES: String

The Java runtime resources of a component, packaged as class path elements, either a JAR or a classes directory. Should not include classes, but may.

NATIVE_LINK

static val NATIVE_LINK: String

The native link files of a library, packaged as static or shared library.

NATIVE_RUNTIME

static val NATIVE_RUNTIME: String

The native runtime files of a library, packaged as a shared library.

SWIFT_API

static val SWIFT_API: String

The Swift API of a library, packaged as swiftmodule files.

USAGE_ATTRIBUTE

static val USAGE_ATTRIBUTE: Attribute<Usage>

Inherited Functions

getName

abstract fun getName(): String

The object's name.

Must be constant for the life of the object.