Package org.gradle.jvm
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dependencies
(Closure<?> configureAction) Specify the dependencies of this API.void
Specify a package to be exported as part of the library API.The dependencies of this API.The set of packages that comprise this library's public API.
-
Method Details
-
exports
Specify a package to be exported as part of the library API.- Parameters:
packageName
- the name of the package to be exported, e.g. "com.example.p1"- Throws:
InvalidUserDataException
- if the package name is not valid or has already been exported
-
getExports
The set of packages that comprise this library's public API. -
dependencies
Specify the dependencies of this API. -
getDependencies
DependencySpecContainer getDependencies()The dependencies of this API.
-