-
- All Implemented Interfaces:
public interface KotlinTopLevelExtensionConfig
DSL extension that is used to configure Kotlin options for the entire project.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
explicitApi()
Sets explicitApi option to report issues as errors. abstract Unit
explicitApiWarning()
Sets explicitApi option to report issues as warnings. 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. 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. 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. 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. -
-
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.
-
-
-
-