Interface KotlinTopLevelExtensionConfig
-
- All Implemented Interfaces:
@KotlinGradlePluginDsl() public interface KotlinTopLevelExtensionConfig
A plugin DSL extension for configuring common options for the entire project.
Use the extension in your build script in the
kotlinblock:kotlin { // Your extension configuration }
-
-
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()Specifies the version of the core Kotlin libraries that are added to the Kotlin compile classpath, unless there is already a dependency added to this project. abstract UnitsetCoreLibrariesVersion(String coreLibrariesVersion)Specifies the version of the core Kotlin libraries that are added to the Kotlin compile classpath, unless there is already a dependency added to this project. abstract ExplicitApiModegetExplicitApi()Configures default explicit API mode for all non-test compilations in the project. abstract UnitsetExplicitApi(ExplicitApiMode explicitApi)Configures default explicit API mode for all non-test compilations in the project. -
-
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()
Specifies the version of the core Kotlin libraries that are added to the Kotlin compile classpath, unless there is already a dependency added to this project.
The core Kotlin libraries are:
'kotlin-stdlib'
'kotlin-test'
'kotlin-dom-api-compat'
Default: The same version as the version used in the Kotlin Gradle plugin
-
setCoreLibrariesVersion
abstract Unit setCoreLibrariesVersion(String coreLibrariesVersion)
Specifies the version of the core Kotlin libraries that are added to the Kotlin compile classpath, unless there is already a dependency added to this project.
The core Kotlin libraries are:
'kotlin-stdlib'
'kotlin-test'
'kotlin-dom-api-compat'
Default: The same version as the version used in the Kotlin Gradle plugin
-
getExplicitApi
abstract ExplicitApiMode getExplicitApi()
Configures default explicit API mode for all non-test compilations in the project.
This mode tells the compiler if and how to report issues on all public API declarations that don't have an explicit visibility or return type.
Default:
null
-
setExplicitApi
abstract Unit setExplicitApi(ExplicitApiMode explicitApi)
Configures default explicit API mode for all non-test compilations in the project.
This mode tells the compiler if and how to report issues on all public API declarations that don't have an explicit visibility or return type.
Default:
null
-
-
-
-