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.
| Type | Name and description |
|---|---|
void |
dependencies(groovy.lang.Closure<?> configureAction)Specify the dependencies of this API. |
void |
exports(String packageName)Specify a package to be exported as part of the library API. |
DependencySpecContainer |
getDependencies()The dependencies of this API. |
Set<String> |
getExports()The set of packages that comprise this library's public API. |
Specify the dependencies of this API.
Specify a package to be exported as part of the library API.
packageName - the name of the package to be exported, e.g. "com.example.p1"The dependencies of this API.