Interface FluxoConfigurationExtensionKotlinOptions
-
- All Implemented Interfaces:
-
fluxo.conf.dsl.FluxoConfigurationExtensionCommon
public interface FluxoConfigurationExtensionKotlinOptions implements FluxoConfigurationExtensionCommon
-
-
Method Summary
Modifier and Type Method Description UnitexplicitApi()Sets explicitApi option to report issues as errors. UnitexplicitApiWarning()Sets explicitApi option to report issues as warnings. abstract StringgetKotlinLangVersion()The Kotlin language version. abstract UnitsetKotlinLangVersion(String kotlinLangVersion)The Kotlin language version. abstract StringgetKotlinApiVersion()The Kotlin api version. abstract UnitsetKotlinApiVersion(String kotlinApiVersion)The Kotlin api version. abstract StringgetKotlinTestsLangVersion()Override the Kotlin language/api version for tests. abstract UnitsetKotlinTestsLangVersion(String kotlinTestsLangVersion)Override the Kotlin language/api version for tests. abstract StringgetKotlinCoreLibraries()Version of the core Kotlin libraries added to Kotlin compile classpath, unless stdlib dependency already added to the project. abstract UnitsetKotlinCoreLibraries(String kotlinCoreLibraries)Version of the core Kotlin libraries added to Kotlin compile classpath, unless stdlib dependency already added to the project. abstract StringgetJavaLangTarget()The Java lang target (and source) version. abstract UnitsetJavaLangTarget(String javaLangTarget)The Java lang target (and source) version. abstract StringgetJavaTestsLangTarget()Override the Java lang target (and source) version for tests. abstract UnitsetJavaTestsLangTarget(String javaTestsLangTarget)Override the Java lang target (and source) version for tests. StringgetJvmTarget()UnitsetJvmTarget(String jvmTarget)abstract BooleangetSetupJvmToolchain()Flag to configure Java toolchain both for Kotlin JVM and Java tasks. abstract UnitsetSetupJvmToolchain(Boolean setupJvmToolchain)Flag to configure Java toolchain both for Kotlin JVM and Java tasks. abstract BooleangetSetupKotlin()Flag that allows to disable kotlin plugin configuration completely. abstract UnitsetSetupKotlin(Boolean setupKotlin)Flag that allows to disable kotlin plugin configuration completely. abstract List<String>getOptIns()List of Kotlin opt-ins to add in the project. abstract UnitsetOptIns(List<String> optIns)List of Kotlin opt-ins to add in the project. abstract BooleangetOptInInternal()Flag to add opt-ins for internal Kotlin and Coroutines features. abstract UnitsetOptInInternal(Boolean optInInternal)Flag to add opt-ins for internal Kotlin and Coroutines features. abstract ExplicitApiModegetExplicitApi()Option that tells the Kotlin 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 Kotlin compiler if and how to report issues on all public API declarations without explicit visibility or return type. abstract BooleangetAllWarningsAsErrors()abstract UnitsetAllWarningsAsErrors(Boolean allWarningsAsErrors)abstract BooleangetJavaParameters()Generate metadata for Java 1.8 reflection on method parameters. abstract UnitsetJavaParameters(Boolean javaParameters)Generate metadata for Java 1.8 reflection on method parameters. abstract BooleangetUseIndyLambdas()Flag to turn off dynamic invocations ( invokedynamic) compilation for Kotlin lambdas and SAM conversions (indymode).abstract UnitsetUseIndyLambdas(Boolean useIndyLambdas)Flag to turn off dynamic invocations ( invokedynamic) compilation for Kotlin lambdas and SAM conversions (indymode).abstract BooleangetProgressiveMode()Flag to turn on the progressive mode. abstract UnitsetProgressiveMode(Boolean progressiveMode)Flag to turn on the progressive mode. abstract BooleangetLatestSettingsForTests()Flag to create an experimental compilation with the latest language features. abstract UnitsetLatestSettingsForTests(Boolean latestSettingsForTests)Flag to create an experimental compilation with the latest language features. abstract BooleangetExperimentalLatestCompilation()Flag to create an experimental compilation with the latest language features. abstract UnitsetExperimentalLatestCompilation(Boolean experimentalLatestCompilation)Flag to create an experimental compilation with the latest language features. abstract BooleangetRemoveAssertionsInRelease()Flag to remove utility bytecode, eliminating names/data leaks in release artifacts (better for minification and obfuscation). abstract UnitsetRemoveAssertionsInRelease(Boolean removeAssertionsInRelease)Flag to remove utility bytecode, eliminating names/data leaks in release artifacts (better for minification and obfuscation). abstract BooleangetUseExperimentalFastJarFs()Flag to turn on the new faster version of JAR FS should make build faster, but it is experimental and causes warning. abstract UnitsetUseExperimentalFastJarFs(Boolean useExperimentalFastJarFs)Flag to turn on the new faster version of JAR FS should make build faster, but it is experimental and causes warning. -
Methods inherited from class fluxo.conf.dsl.FluxoConfigurationExtensionCommon
getEnableBuildConfig, getEnableDetektAutoCorrect, getEnableDetektCompilerPlugin, getEnableSpotless, getEnableVerification, getSetupDependencies, getSetupKnownBoms, getSetupVerification, setEnableBuildConfig, setEnableDetektAutoCorrect, setEnableDetektCompilerPlugin, setEnableSpotless, setEnableVerification, setSetupDependencies, setSetupKnownBoms, setSetupVerification -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
explicitApi
Unit explicitApi()
Sets explicitApi option to report issues as errors.
WARN: Automatically sets for Gradle plugins configured via setupGradlePlugin!
-
explicitApiWarning
Unit explicitApiWarning()
Sets explicitApi option to report issues as warnings.
-
getKotlinLangVersion
abstract String getKotlinLangVersion()
The Kotlin language version. Provide source compatibility with the specified version of Kotlin.
Possible values: '1.4 (deprecated)', '1.5 (deprecated)', '1.6', '1.7', '1.8', '1.9', '2.0 (experimental)', '2.1 (experimental)'. Set 'latest' or 'last' for the latest possible value. Set 'current' for the current Kotlin plugin base value.
Inherited from the parent project if not set. Default value:
null.Auto set using the version names in the toml version catalog:
kotlinLangVersion,kotlinLang.Note: can't be lower than kotlinApiVersion!
-
setKotlinLangVersion
abstract Unit setKotlinLangVersion(String kotlinLangVersion)
The Kotlin language version. Provide source compatibility with the specified version of Kotlin.
Possible values: '1.4 (deprecated)', '1.5 (deprecated)', '1.6', '1.7', '1.8', '1.9', '2.0 (experimental)', '2.1 (experimental)'. Set 'latest' or 'last' for the latest possible value. Set 'current' for the current Kotlin plugin base value.
Inherited from the parent project if not set. Default value:
null.Auto set using the version names in the toml version catalog:
kotlinLangVersion,kotlinLang.Note: can't be lower than kotlinApiVersion!
-
getKotlinApiVersion
abstract String getKotlinApiVersion()
The Kotlin api version. Allow using declarations only from the specified version of the bundled libraries.
Possible values: '1.4 (deprecated)', '1.5 (deprecated)', '1.6', '1.7', '1.8', '1.9', '2.0 (experimental)', '2.1 (experimental)'. Set 'latest' or 'last' for the latest possible value. Set 'current' for the current Kotlin plugin base value.
Inherited from the parent project if not set. Default value: kotlinLangVersion.
Auto set using the version names in the toml version catalog:
kotlinApiVersion,kotlinApi.Note: can't be greater than kotlinLangVersion!
-
setKotlinApiVersion
abstract Unit setKotlinApiVersion(String kotlinApiVersion)
The Kotlin api version. Allow using declarations only from the specified version of the bundled libraries.
Possible values: '1.4 (deprecated)', '1.5 (deprecated)', '1.6', '1.7', '1.8', '1.9', '2.0 (experimental)', '2.1 (experimental)'. Set 'latest' or 'last' for the latest possible value. Set 'current' for the current Kotlin plugin base value.
Inherited from the parent project if not set. Default value: kotlinLangVersion.
Auto set using the version names in the toml version catalog:
kotlinApiVersion,kotlinApi.Note: can't be greater than kotlinLangVersion!
-
getKotlinTestsLangVersion
abstract String getKotlinTestsLangVersion()
Override the Kotlin language/api version for tests. Provide source compatibility with the specified version of Kotlin.
Possible values: '1.4 (deprecated)', '1.5 (deprecated)', '1.6', '1.7', '1.8', '1.9', '2.0 (experimental)', '2.1 (experimental)'. Set 'latest' or 'last' for the latest possible value. Set 'current' for the current Kotlin plugin base value.
Inherited from the parent project if not set. Default value:
null.Auto set using the version names in the toml version catalog:
testsKotlinLangVersion,testsKotlinLang.Note: can't be lower than kotlinApiVersion or kotlinLangVersion!
-
setKotlinTestsLangVersion
abstract Unit setKotlinTestsLangVersion(String kotlinTestsLangVersion)
Override the Kotlin language/api version for tests. Provide source compatibility with the specified version of Kotlin.
Possible values: '1.4 (deprecated)', '1.5 (deprecated)', '1.6', '1.7', '1.8', '1.9', '2.0 (experimental)', '2.1 (experimental)'. Set 'latest' or 'last' for the latest possible value. Set 'current' for the current Kotlin plugin base value.
Inherited from the parent project if not set. Default value:
null.Auto set using the version names in the toml version catalog:
testsKotlinLangVersion,testsKotlinLang.Note: can't be lower than kotlinApiVersion or kotlinLangVersion!
-
getKotlinCoreLibraries
abstract String getKotlinCoreLibraries()
Version of the core Kotlin libraries added to Kotlin compile classpath, unless stdlib dependency already added to the project.
Inherited from the parent project if not set. By default, this version is the same as the version of the used Kotlin Gradle plugin.
Auto set using the version names in the toml version catalog:
kotlinCoreLibraries,kotlinCoreLibrariesVersion,kotlinStdlib,kotlin,kotlinVersion.
-
setKotlinCoreLibraries
abstract Unit setKotlinCoreLibraries(String kotlinCoreLibraries)
Version of the core Kotlin libraries added to Kotlin compile classpath, unless stdlib dependency already added to the project.
Inherited from the parent project if not set. By default, this version is the same as the version of the used Kotlin Gradle plugin.
Auto set using the version names in the toml version catalog:
kotlinCoreLibraries,kotlinCoreLibrariesVersion,kotlinStdlib,kotlin,kotlinVersion.
-
getJavaLangTarget
abstract String getJavaLangTarget()
The Java lang target (and source) version. Configures to generate class files suitable for the specified Java SE release. And compiles source code according to the rules of the Java programming language for the specified Java SE release.
Set 'latest' or 'last' for the latest possible value. Set 'current' for the current Kotlin plugin base value.
Inherited from the parent project if not set.
Auto set using the version names in the toml version catalog:
jvmTarget,javaLangTarget,javaLangSource,javaToolchain,sourceCompatibility,targetCompatibility.Note: the Java lang target must not be lower than the source release.
-
setJavaLangTarget
abstract Unit setJavaLangTarget(String javaLangTarget)
The Java lang target (and source) version. Configures to generate class files suitable for the specified Java SE release. And compiles source code according to the rules of the Java programming language for the specified Java SE release.
Set 'latest' or 'last' for the latest possible value. Set 'current' for the current Kotlin plugin base value.
Inherited from the parent project if not set.
Auto set using the version names in the toml version catalog:
jvmTarget,javaLangTarget,javaLangSource,javaToolchain,sourceCompatibility,targetCompatibility.Note: the Java lang target must not be lower than the source release.
-
getJavaTestsLangTarget
abstract String getJavaTestsLangTarget()
Override the Java lang target (and source) version for tests.
Inherited from the parent project if not set.
Auto set using the version names in the toml version catalog:
jvmTestsTarget,javaTestsLangTargetNote: can't be lower than javaLangTarget!
-
setJavaTestsLangTarget
abstract Unit setJavaTestsLangTarget(String javaTestsLangTarget)
Override the Java lang target (and source) version for tests.
Inherited from the parent project if not set.
Auto set using the version names in the toml version catalog:
jvmTestsTarget,javaTestsLangTargetNote: can't be lower than javaLangTarget!
-
getJvmTarget
String getJvmTarget()
-
setJvmTarget
Unit setJvmTarget(String jvmTarget)
-
getSetupJvmToolchain
abstract Boolean getSetupJvmToolchain()
Flag to configure Java toolchain both for Kotlin JVM and Java tasks.
Turned off by default as it can slow down the build.
Inherited from the parent project if not set.
-
setSetupJvmToolchain
abstract Unit setSetupJvmToolchain(Boolean setupJvmToolchain)
Flag to configure Java toolchain both for Kotlin JVM and Java tasks.
Turned off by default as it can slow down the build.
Inherited from the parent project if not set.
-
getSetupKotlin
abstract Boolean getSetupKotlin()
Flag that allows to disable kotlin plugin configuration completely.
Inherited from the parent project if not set. Default value:
true.
-
setSetupKotlin
abstract Unit setSetupKotlin(Boolean setupKotlin)
Flag that allows to disable kotlin plugin configuration completely.
Inherited from the parent project if not set. Default value:
true.
-
getOptIns
abstract List<String> getOptIns()
List of Kotlin opt-ins to add in the project.
Default set of opt-ins:
-
setOptIns
abstract Unit setOptIns(List<String> optIns)
List of Kotlin opt-ins to add in the project.
Default set of opt-ins:
-
getOptInInternal
abstract Boolean getOptInInternal()
Flag to add opt-ins for internal Kotlin and Coroutines features.
For Coroutines:
kotlinx.coroutines.DelicateCoroutinesApi
kotlinx.coroutines.ExperimentalCoroutinesApi
kotlinx.coroutines.InternalCoroutinesApi
-
setOptInInternal
abstract Unit setOptInInternal(Boolean optInInternal)
Flag to add opt-ins for internal Kotlin and Coroutines features.
For Coroutines:
kotlinx.coroutines.DelicateCoroutinesApi
kotlinx.coroutines.ExperimentalCoroutinesApi
kotlinx.coroutines.InternalCoroutinesApi
-
getExplicitApi
abstract ExplicitApiMode getExplicitApi()
Option that tells the Kotlin compiler if and how to report issues on all public API declarations without explicit visibility or return type.
Inherited from the parent project if not set. Default value:
ExplicitApiMode.Strictfor Gradle plugins configured via setupGradlePlugin!in other cases
null.
-
setExplicitApi
abstract Unit setExplicitApi(ExplicitApiMode explicitApi)
Option that tells the Kotlin compiler if and how to report issues on all public API declarations without explicit visibility or return type.
Inherited from the parent project if not set. Default value:
ExplicitApiMode.Strictfor Gradle plugins configured via setupGradlePlugin!in other cases
null.
-
getAllWarningsAsErrors
abstract Boolean getAllWarningsAsErrors()
-
setAllWarningsAsErrors
abstract Unit setAllWarningsAsErrors(Boolean allWarningsAsErrors)
-
getJavaParameters
abstract Boolean getJavaParameters()
Generate metadata for Java 1.8 reflection on method parameters.
Inherited from the parent project if not set. Default value:
false.
-
setJavaParameters
abstract Unit setJavaParameters(Boolean javaParameters)
Generate metadata for Java 1.8 reflection on method parameters.
Inherited from the parent project if not set. Default value:
false.
-
getUseIndyLambdas
abstract Boolean getUseIndyLambdas()
Flag to turn off dynamic invocations (
invokedynamic) compilation for Kotlin lambdas and SAM conversions (indymode).Inherited from the parent project if not set. Default value:
true.Indy mode produces faster and more compact bytecode, using the
invokedynamicJVM instruction. Note: legacyclassmode provides names for lambda arguments. Indy mode doesn't!Uses
-Xlambdasand-Xsam-conversionscompiler options.
-
setUseIndyLambdas
abstract Unit setUseIndyLambdas(Boolean useIndyLambdas)
Flag to turn off dynamic invocations (
invokedynamic) compilation for Kotlin lambdas and SAM conversions (indymode).Inherited from the parent project if not set. Default value:
true.Indy mode produces faster and more compact bytecode, using the
invokedynamicJVM instruction. Note: legacyclassmode provides names for lambda arguments. Indy mode doesn't!Uses
-Xlambdasand-Xsam-conversionscompiler options.
-
getProgressiveMode
abstract Boolean getProgressiveMode()
Flag to turn on the progressive mode.
Deprecations and bug fixes for unstable code take effect immediately in this mode. Instead of going through a graceful migration cycle.
Progressive code is backward compatible. But not otherwise.
Only applied if the latest kotlinLangVersion used (otherwise meaningless).
Inherited from the parent project if not set. Default value:
true.
-
setProgressiveMode
abstract Unit setProgressiveMode(Boolean progressiveMode)
Flag to turn on the progressive mode.
Deprecations and bug fixes for unstable code take effect immediately in this mode. Instead of going through a graceful migration cycle.
Progressive code is backward compatible. But not otherwise.
Only applied if the latest kotlinLangVersion used (otherwise meaningless).
Inherited from the parent project if not set. Default value:
true.
-
getLatestSettingsForTests
abstract Boolean getLatestSettingsForTests()
Flag to create an experimental compilation with the latest language features.
Inherited from the parent project if not set. Default value:
true.
-
setLatestSettingsForTests
abstract Unit setLatestSettingsForTests(Boolean latestSettingsForTests)
Flag to create an experimental compilation with the latest language features.
Inherited from the parent project if not set. Default value:
true.
-
getExperimentalLatestCompilation
abstract Boolean getExperimentalLatestCompilation()
Flag to create an experimental compilation with the latest language features.
Inherited from the parent project if not set. Default value:
false.
-
setExperimentalLatestCompilation
abstract Unit setExperimentalLatestCompilation(Boolean experimentalLatestCompilation)
Flag to create an experimental compilation with the latest language features.
Inherited from the parent project if not set. Default value:
false.
-
getRemoveAssertionsInRelease
abstract Boolean getRemoveAssertionsInRelease()
Flag to remove utility bytecode, eliminating names/data leaks in release artifacts (better for minification and obfuscation).
Inherited from the parent project if not set. Default value:
true.Uses
-Xno-call-assertions,-Xno-param-assertions, and-Xno-receiver-assertionscompiler options.
-
setRemoveAssertionsInRelease
abstract Unit setRemoveAssertionsInRelease(Boolean removeAssertionsInRelease)
Flag to remove utility bytecode, eliminating names/data leaks in release artifacts (better for minification and obfuscation).
Inherited from the parent project if not set. Default value:
true.Uses
-Xno-call-assertions,-Xno-param-assertions, and-Xno-receiver-assertionscompiler options.
-
getUseExperimentalFastJarFs
abstract Boolean getUseExperimentalFastJarFs()
Flag to turn on the new faster version of JAR FS should make build faster, but it is experimental and causes warning. So auto turned off when allWarningsAsErrors enabled.
Inherited from the parent project if not set. Default value:
true.Uses
-Xuse-fast-jar-file-systemcompiler option.
-
setUseExperimentalFastJarFs
abstract Unit setUseExperimentalFastJarFs(Boolean useExperimentalFastJarFs)
Flag to turn on the new faster version of JAR FS should make build faster, but it is experimental and causes warning. So auto turned off when allWarningsAsErrors enabled.
Inherited from the parent project if not set. Default value:
true.Uses
-Xuse-fast-jar-file-systemcompiler option.
-
-
-
-