-
- 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 class
KotlinJsProjectExtension.Companion
-
Field Summary
Fields Modifier and Type Field Description private KotlinJsIrSingleTargetPreset
irPreset
private KotlinJsSingleTargetPreset
legacyPreset
private final KotlinJsTargetDsl
_target
private final KotlinJsTargetDsl
target
private KotlinJsCompilerType
compilerTypeFromProperties
private final NamedDomainObjectContainer<KotlinSourceSet>
sourceSets
private String
coreLibrariesVersion
private List<String>
kotlinDaemonJvmArgs
private ExplicitApiMode
explicitApi
private final KotlinJsCompilerType
BOTH
private final KotlinJsCompilerType
IR
private final KotlinJsCompilerType
LEGACY
private final KotlinJsCompilerType
defaultJsCompilerType
-
Constructor Summary
Constructors Constructor Description KotlinJsProjectExtension(Project project)
-
Method Summary
-
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
getSourceSets
-
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinTopLevelExtension
explicitApi, explicitApiWarning, getCoreLibrariesVersion, getExplicitApi, invokeWhenCreated, jvmToolchain, jvmToolchain, setCoreLibrariesVersion, setExplicitApi, setKotlinDaemonJvmArgs
-
Methods inherited from class org.jetbrains.kotlin.gradle.plugin.KotlinJsCompilerTypeHolder
getBOTH, getDefaultJsCompilerType, getIR, getLEGACY
-
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinSingleTargetExtension
target
-
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()
-
getTarget
KotlinJsTargetDsl getTarget()
-
getCompilerTypeFromProperties
KotlinJsCompilerType getCompilerTypeFromProperties()
-
setCompilerTypeFromProperties
Unit setCompilerTypeFromProperties(KotlinJsCompilerType compilerTypeFromProperties)
-
registerTargetObserver
final Unit registerTargetObserver(Function1<KotlinJsTargetDsl, Unit> observer)
-
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)
-
-
-
-