-
- 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.internal.CompilerArgumentAware
,org.jetbrains.kotlin.gradle.internal.tasks.TaskWithLocalState
,org.jetbrains.kotlin.gradle.tasks.KotlinCompileTool
public abstract class AbstractKotlinNativeCompile<T extends KotlinCommonToolOptions, K extends KotlinNativeCompilationData<?>, M extends CommonToolArguments> extends AbstractKotlinCompileTool<M>
-
-
Field Summary
Fields Modifier and Type Field Description private final K
compilation
private final CompilerOutputKind
outputKind
private final Boolean
optimized
private final Boolean
debuggable
private final String
baseName
private final ConfigurableFileCollection
libraries
private final String
target
private final T
kotlinOptions
private final Provider<Collection<String>>
additionalCompilerOptions
private final LanguageSettings
languageSettings
private final Boolean
progressiveMode
private final Boolean
enableEndorsedLibs
private final String
kotlinNativeVersion
private final Provider<File>
outputFile
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 AbstractKotlinNativeCompile(ObjectFactory objectFactory)
-
Method Summary
-
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
createCompilerArgs, getSerializedCompilerArgumentsIgnoreClasspathIssues, setupCompilerArgs
-
Methods inherited from class org.jetbrains.kotlin.gradle.internal.tasks.TaskWithLocalState
getLocalStateDirectories
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCompilation
@Internal() abstract K getCompilation()
-
getOutputKind
@Input() abstract CompilerOutputKind getOutputKind()
-
getOptimized
@Input() abstract Boolean getOptimized()
-
getDebuggable
@Input() abstract Boolean getDebuggable()
-
getBaseName
@Internal() abstract String getBaseName()
-
getLibraries
@Classpath() ConfigurableFileCollection getLibraries()
-
getKotlinOptions
@Internal() abstract T getKotlinOptions()
-
getAdditionalCompilerOptions
@Input() abstract Provider<Collection<String>> getAdditionalCompilerOptions()
-
getLanguageSettings
@Internal() final LanguageSettings getLanguageSettings()
-
getProgressiveMode
@Input() final Boolean getProgressiveMode()
-
getEnableEndorsedLibs
@Input() final Boolean getEnableEndorsedLibs()
-
getKotlinNativeVersion
@Input() final String getKotlinNativeVersion()
-
getOutputFile
@Internal() Provider<File> getOutputFile()
-
getCompilerPluginOptions
final CompilerPluginOptions getCompilerPluginOptions()
-
getCompilerPluginCommandLine
@Input() final List<String> getCompilerPluginCommandLine()
-
getCompilerPluginClasspath
FileCollection getCompilerPluginClasspath()
-
setCompilerPluginClasspath
Unit setCompilerPluginClasspath(@Optional() @Classpath() FileCollection compilerPluginClasspath)
-
getKotlinPluginData
@Optional() final Provider<KotlinCompilerPluginData> getKotlinPluginData()
Plugin Data provided by KpmCompilerPlugin
-
setKotlinPluginData
final Unit setKotlinPluginData(Provider<KotlinCompilerPluginData> kotlinPluginData)
Plugin Data provided by KpmCompilerPlugin
-
getSerializedCompilerArguments
@Internal() List<String> getSerializedCompilerArguments()
-
getDefaultSerializedCompilerArguments
@Internal() List<String> getDefaultSerializedCompilerArguments()
-
kotlinOptions
abstract Unit kotlinOptions(Function1<T, Unit> fn)
-
kotlinOptions
abstract Unit kotlinOptions(Closure<?> fn)
-
buildCommonArgs
abstract List<String> buildCommonArgs(Boolean defaultsOnly)
-
-
-
-