-
- All Implemented Interfaces:
public interface KotlinTopLevelExtensionConfigDSL extension that is used to configure Kotlin options for the entire project.
-
-
Method Summary
Modifier and Type Method Description abstract UnitexplicitApi()Sets explicitApi option to report issues as errors. abstract UnitexplicitApiWarning()Sets explicitApi option to report issues as warnings. abstract StringgetCoreLibrariesVersion()Version of the core Kotlin libraries that are added to Kotlin compile classpath, unless there is already a dependency added to this project. abstract UnitsetCoreLibrariesVersion(String coreLibrariesVersion)Version of the core Kotlin libraries that are added to Kotlin compile classpath, unless there is already a dependency added to this project. abstract ExplicitApiModegetExplicitApi()Option that tells the compiler if and how to report issues on all public API declarations without explicit visibility or return type. abstract UnitsetExplicitApi(ExplicitApiMode explicitApi)Option that tells the compiler if and how to report issues on all public API declarations without explicit visibility or return type. -
-
Method Detail
-
explicitApi
abstract Unit explicitApi()
Sets explicitApi option to report issues as errors.
-
explicitApiWarning
abstract Unit explicitApiWarning()
Sets explicitApi option to report issues as warnings.
-
getCoreLibrariesVersion
abstract String getCoreLibrariesVersion()
Version of the core Kotlin libraries that are added to Kotlin compile classpath, unless there is already a dependency added to this project. By default, this version is the same as the version of the used Kotlin Gradle plugin.
-
setCoreLibrariesVersion
abstract Unit setCoreLibrariesVersion(String coreLibrariesVersion)
Version of the core Kotlin libraries that are added to Kotlin compile classpath, unless there is already a dependency added to this project. By default, this version is the same as the version of the used Kotlin Gradle plugin.
-
getExplicitApi
abstract ExplicitApiMode getExplicitApi()
Option that tells the compiler if and how to report issues on all public API declarations without explicit visibility or return type.
-
setExplicitApi
abstract Unit setExplicitApi(ExplicitApiMode explicitApi)
Option that tells the compiler if and how to report issues on all public API declarations without explicit visibility or return type.
-
-
-
-