api / org.gradle.jvm / JvmApiSpec

JvmApiSpec

@Incubating interface JvmApiSpec

Specifies the packages that constitute the API of a library. Facilitates separation of API and implementation binaries for that library. Backing object for the api {} DSL.

Since
2.10

Functions

dependencies

abstract fun dependencies(configureAction: Closure<*>): Unit

Specify the dependencies of this API.

exports

abstract fun exports(packageName: String): Unit

Specify a package to be exported as part of the library API.

getDependencies

abstract fun getDependencies(): DependencySpecContainer

The dependencies of this API.

getExports

abstract fun getExports(): MutableSet<String>

The set of packages that comprise this library's public API.