-
- All Implemented Interfaces:
-
kotlin.Comparable
,org.gradle.api.Task
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.TaskInternal
,org.gradle.api.plugins.ExtensionAware
,org.gradle.api.tasks.util.PatternFilterable
,org.gradle.util.Configurable
,org.jetbrains.kotlin.gradle.dsl.KotlinCompile
,org.jetbrains.kotlin.gradle.internal.CompilerArgumentAware
,org.jetbrains.kotlin.gradle.internal.tasks.TaskWithLocalState
,org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
,org.jetbrains.kotlin.gradle.tasks.KotlinCompileTool
@CacheableTask() public abstract class KotlinNativeCompile extends AbstractKotlinNativeCompile<KotlinCommonOptions, KotlinNativeCompilationData<?>, StubK2NativeCompilerArguments> implements KotlinCompile<KotlinCommonOptions>, KotlinCompilationTask<KotlinCommonCompilerOptions>
A task producing a klibrary from a compilation.
-
-
Field Summary
Fields Modifier and Type Field Description private final CompilerOutputKind
outputKind
private final Boolean
optimized
private final Boolean
debuggable
private final String
baseName
private final String
moduleName
private final Provider<File>
outputFile
private final String
shortModuleName
private final ConfigurableFileCollection
commonSources
private final String
languageVersion
private final String
apiVersion
private final Set<String>
enabledLanguageFeatures
private final Set<String>
optInAnnotationsInUse
private final KotlinCommonCompilerOptions
compilerOptions
private final KotlinCommonOptions
kotlinOptions
private final Provider<Collection<String>>
additionalCompilerOptions
private final transient KotlinNativeCompilationData<?>
compilation
private final ConfigurableFileCollection
libraries
private final String
target
private final LanguageSettings
languageSettings
private final Boolean
progressiveMode
private final Boolean
enableEndorsedLibs
private final String
kotlinNativeVersion
private final CompilerPluginOptions
compilerPluginOptions
private final List<String>
compilerPluginCommandLine
private FileCollection
compilerPluginClasspath
private Provider<KotlinCompilerPluginData>
kotlinPluginData
private final List<String>
serializedCompilerArguments
private final List<String>
defaultSerializedCompilerArguments
private final FileCollection
sources
private final Property<BuildMetricsReporter>
metrics
private Boolean
enabled
private final Property<Duration>
timeout
private final TaskStateInternal
state
private Boolean
impliesSubProjects
private final Boolean
hasCustomActions
private final Set<Provider<out BuildService<?>>>
requiredServices
private final DirectoryProperty
destinationDirectory
private final List<String>
serializedCompilerArgumentsIgnoreClasspathIssues
private final ConfigurableFileCollection
localStateDirectories
-
Constructor Summary
Constructors Constructor Description KotlinNativeCompile(KotlinNativeCompilationData<?> compilation, ObjectFactory objectFactory, ProviderFactory providerFactory, ExecOperations execOperations)
-
Method Summary
Modifier and Type Method Description CompilerOutputKind
getOutputKind()
Boolean
getOptimized()
Boolean
getDebuggable()
String
getBaseName()
final String
getModuleName()
Provider<File>
getOutputFile()
final String
getShortModuleName()
final ConfigurableFileCollection
getCommonSources()
final String
getLanguageVersion()
final String
getApiVersion()
final Set<String>
getEnabledLanguageFeatures()
final Set<String>
getOptInAnnotationsInUse()
KotlinCommonCompilerOptions
getCompilerOptions()
KotlinCommonOptions
getKotlinOptions()
Provider<Collection<String>>
getAdditionalCompilerOptions()
final KotlinNativeCompilationData<?>
getCompilation()
Unit
kotlinOptions(Function1<KotlinCommonOptions, Unit> fn)
Unit
kotlinOptions(Closure<?> fn)
StubK2NativeCompilerArguments
createCompilerArgs()
Unit
setupCompilerArgs(StubK2NativeCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)
List<String>
buildCommonArgs(Boolean defaultsOnly)
final Unit
compile()
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.AbstractKotlinNativeCompile
getCompilerPluginClasspath, getCompilerPluginCommandLine, getCompilerPluginOptions, getDefaultSerializedCompilerArguments, getEnableEndorsedLibs, getKotlinNativeVersion, getKotlinPluginData, getLanguageSettings, getLibraries, getProgressiveMode, getSerializedCompilerArguments, getTarget, setCompilerPluginClasspath, setKotlinPluginData
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompileTool
disallowSourceChanges, exclude, exclude, exclude, exclude, getExcludes, getIncludes, getMetrics, getSources, include, include, include, include, setExcludes, setIncludes, setSource, source
-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
-
Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.KotlinCompileTool
getDestinationDirectory
-
Methods inherited from class org.jetbrains.kotlin.gradle.internal.CompilerArgumentAware
getSerializedCompilerArgumentsIgnoreClasspathIssues
-
Methods inherited from class org.jetbrains.kotlin.gradle.internal.tasks.TaskWithLocalState
getLocalStateDirectories
-
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinCompile
kotlinOptions
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
compilerOptions, compilerOptions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
KotlinNativeCompile
KotlinNativeCompile(KotlinNativeCompilationData<?> compilation, ObjectFactory objectFactory, ProviderFactory providerFactory, ExecOperations execOperations)
-
-
Method Detail
-
getOutputKind
@Input() CompilerOutputKind getOutputKind()
-
getOptimized
@Input() Boolean getOptimized()
-
getDebuggable
@Input() Boolean getDebuggable()
-
getBaseName
@Internal() String getBaseName()
-
getModuleName
@Input() final String getModuleName()
-
getOutputFile
@OutputFile() Provider<File> getOutputFile()
-
getShortModuleName
@Input() final String getShortModuleName()
-
getCommonSources
@Internal() final ConfigurableFileCollection getCommonSources()
-
getLanguageVersion
@Optional()@Input() final String getLanguageVersion()
-
getApiVersion
@Optional()@Input() final String getApiVersion()
-
getEnabledLanguageFeatures
@Input() final Set<String> getEnabledLanguageFeatures()
-
getOptInAnnotationsInUse
@Input() final Set<String> getOptInAnnotationsInUse()
-
getCompilerOptions
KotlinCommonCompilerOptions getCompilerOptions()
-
getKotlinOptions
KotlinCommonOptions getKotlinOptions()
-
getAdditionalCompilerOptions
@Input() Provider<Collection<String>> getAdditionalCompilerOptions()
-
getCompilation
final KotlinNativeCompilationData<?> getCompilation()
-
kotlinOptions
Unit kotlinOptions(Function1<KotlinCommonOptions, Unit> fn)
-
kotlinOptions
Unit kotlinOptions(Closure<?> fn)
-
createCompilerArgs
StubK2NativeCompilerArguments createCompilerArgs()
-
setupCompilerArgs
Unit setupCompilerArgs(StubK2NativeCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)
-
buildCommonArgs
List<String> buildCommonArgs(Boolean defaultsOnly)
-
-
-
-