api / org.gradle.jvm / JvmApiSpec / exports

exports

abstract fun exports(packageName: String): Unit

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"

Exceptions

org.gradle.api.InvalidUserDataException - if the package name is not valid or has already been exported