-
- All Implemented Interfaces:
-
org.jetbrains.kotlin.gradle.dsl.KotlinTopLevelExtensionConfig,org.jetbrains.kotlin.gradle.plugin.KotlinJsCompilerTypeHolder,org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetContainer
public abstract class KotlinJsProjectExtension extends KotlinSingleTargetExtension<KotlinJsTargetDsl> implements KotlinJsCompilerTypeHolder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classKotlinJsProjectExtension.Companion
-
Field Summary
Fields Modifier and Type Field Description private KotlinJsIrSingleTargetPresetirPresetprivate KotlinJsSingleTargetPresetlegacyPresetprivate KotlinJsTargetDsl_targetprivate final KotlinJsTargetDsltargetprivate KotlinJsCompilerTypedefaultJsCompilerTypeprivate NamedDomainObjectContainer<KotlinSourceSet>sourceSetsprivate StringcoreLibrariesVersionprivate List<String>kotlinDaemonJvmArgsprivate ExplicitApiModeexplicitApiprivate final KotlinJsCompilerTypeBOTHprivate final KotlinJsCompilerTypeIRprivate final KotlinJsCompilerTypeLEGACY
-
Constructor Summary
Constructors Constructor Description KotlinJsProjectExtension(Project project)
-
Method Summary
Modifier and Type Method Description final KotlinJsIrSingleTargetPresetgetIrPreset()final UnitsetIrPreset(KotlinJsIrSingleTargetPreset irPreset)final KotlinJsSingleTargetPresetgetLegacyPreset()final UnitsetLegacyPreset(KotlinJsSingleTargetPreset legacyPreset)final KotlinJsTargetDslget_target()final Unitset_target(@Deprecated(message = "Use `target` instead", replaceWith = @ReplaceWith(imports = {}, expression = "target")) KotlinJsTargetDsl _target)KotlinJsTargetDslgetTarget()KotlinJsCompilerTypegetDefaultJsCompilerType()UnitsetDefaultJsCompilerType(KotlinJsCompilerType defaultJsCompilerType)NamedDomainObjectContainer<KotlinSourceSet>getSourceSets()UnitsetSourceSets(NamedDomainObjectContainer<KotlinSourceSet> sourceSets)StringgetCoreLibrariesVersion()UnitsetCoreLibrariesVersion(String coreLibrariesVersion)final UnitsetKotlinDaemonJvmArgs(List<String> kotlinDaemonJvmArgs)ExplicitApiModegetExplicitApi()UnitsetExplicitApi(ExplicitApiMode explicitApi)KotlinJsCompilerTypegetBOTH()KotlinJsCompilerTypegetIR()KotlinJsCompilerTypegetLEGACY()final KotlinJsTargetDsljs(KotlinJsCompilerType compiler, Function1<KotlinJsTargetDsl, Unit> body)final KotlinJsTargetDsljs(String compiler, Function1<KotlinJsTargetDsl, Unit> body)final KotlinJsTargetDsljs(Function1<KotlinJsTargetDsl, Unit> body)final KotlinJsTargetDsljs()final KotlinJsTargetDsljs(KotlinJsCompilerType compiler, Action<KotlinJsTargetDsl> configure)final KotlinJsTargetDsljs(String compiler, Action<KotlinJsTargetDsl> configure)final KotlinJsTargetDsljs(Action<KotlinJsTargetDsl> configure)KotlinJsTargetDsltarget(Function1<KotlinJsTargetDsl, Unit> body)final NamedDomainObjectContainer<KotlinTarget>getTargets()-
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinJsProjectExtension
target -
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
explicitApi, explicitApiWarning, jvmToolchain, jvmToolchain -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getIrPreset
final KotlinJsIrSingleTargetPreset getIrPreset()
-
setIrPreset
final Unit setIrPreset(KotlinJsIrSingleTargetPreset irPreset)
-
getLegacyPreset
final KotlinJsSingleTargetPreset getLegacyPreset()
-
setLegacyPreset
final Unit setLegacyPreset(KotlinJsSingleTargetPreset legacyPreset)
-
get_target
final KotlinJsTargetDsl get_target()
-
set_target
final Unit set_target(@Deprecated(message = "Use `target` instead", replaceWith = @ReplaceWith(imports = {}, expression = "target")) KotlinJsTargetDsl _target)
-
getTarget
KotlinJsTargetDsl getTarget()
-
getDefaultJsCompilerType
KotlinJsCompilerType getDefaultJsCompilerType()
-
setDefaultJsCompilerType
Unit setDefaultJsCompilerType(KotlinJsCompilerType defaultJsCompilerType)
-
getSourceSets
NamedDomainObjectContainer<KotlinSourceSet> getSourceSets()
-
setSourceSets
Unit setSourceSets(NamedDomainObjectContainer<KotlinSourceSet> sourceSets)
-
getCoreLibrariesVersion
String getCoreLibrariesVersion()
-
setCoreLibrariesVersion
Unit setCoreLibrariesVersion(String coreLibrariesVersion)
-
setKotlinDaemonJvmArgs
final Unit setKotlinDaemonJvmArgs(List<String> kotlinDaemonJvmArgs)
-
getExplicitApi
ExplicitApiMode getExplicitApi()
-
setExplicitApi
Unit setExplicitApi(ExplicitApiMode explicitApi)
-
getBOTH
KotlinJsCompilerType getBOTH()
-
getIR
KotlinJsCompilerType getIR()
-
getLEGACY
KotlinJsCompilerType getLEGACY()
-
js
final KotlinJsTargetDsl js(KotlinJsCompilerType compiler, Function1<KotlinJsTargetDsl, Unit> body)
-
js
final KotlinJsTargetDsl js(String compiler, Function1<KotlinJsTargetDsl, Unit> body)
-
js
final KotlinJsTargetDsl js(Function1<KotlinJsTargetDsl, Unit> body)
-
js
final KotlinJsTargetDsl js()
-
js
final KotlinJsTargetDsl js(KotlinJsCompilerType compiler, Action<KotlinJsTargetDsl> configure)
-
js
final KotlinJsTargetDsl js(String compiler, Action<KotlinJsTargetDsl> configure)
-
js
final KotlinJsTargetDsl js(Action<KotlinJsTargetDsl> configure)
-
target
@Deprecated(message = "Use js instead", replaceWith = @ReplaceWith(imports = {}, expression = "js(body)")) KotlinJsTargetDsl target(Function1<KotlinJsTargetDsl, Unit> body)
-
getTargets
@Deprecated(message = "Needed for IDE import using the MPP import mechanism", level = DeprecationLevel.HIDDEN) final NamedDomainObjectContainer<KotlinTarget> getTargets()
-
-
-
-