@Incubating public interface JvmApiSpec
api {}
DSL.Modifier and Type | Method and Description |
---|---|
void |
dependencies(Closure<?> configureAction)
Specify the dependencies of this API.
|
void |
exports(java.lang.String packageName)
Specify a package to be exported as part of the library API.
|
DependencySpecContainer |
getDependencies()
The dependencies of this API.
|
java.util.Set<java.lang.String> |
getExports()
The set of packages that comprise this library's public API.
|
void exports(java.lang.String packageName)
packageName
- the name of the package to be exported, e.g. "com.example.p1"InvalidUserDataException
- if the package name is not valid or has already been exportedjava.util.Set<java.lang.String> getExports()
void dependencies(Closure<?> configureAction)
DependencySpecContainer getDependencies()