-
- All Implemented Interfaces:
-
kotlin.Comparable,org.gradle.api.Task,org.gradle.api.file.ContentFilterable,org.gradle.api.file.CopyProcessingSpec,org.gradle.api.file.CopySourceSpec,org.gradle.api.file.CopySpec,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.IConventionAware,org.gradle.api.internal.TaskInternal,org.gradle.api.internal.file.copy.CopySpecSource,org.gradle.api.plugins.ExtensionAware,org.gradle.api.tasks.util.PatternFilterable,org.gradle.util.Configurable
public class SourceJar extends JarWithClassifier
A task generating a Jar file with the project source code.
-
-
Field Summary
Fields Modifier and Type Field Description private StringmanifestContentCharsetprivate Manifestmanifestprivate ZipEntryCompressionentryCompressionprivate final Property<String>archiveBaseNameprivate final Property<String>archiveAppendixprivate final Property<String>archiveVersionprivate final Property<String>archiveExtensionprivate final Property<String>archiveClassifierprivate final CopySpecInternalrootSpecprivate final ConventionMappingconventionMappingprivate Booleanenabledprivate final Property<Duration>timeoutprivate final TaskStateInternalstateprivate BooleanimpliesSubProjectsprivate final BooleanhasCustomActionsprivate final Set<Provider<out BuildService<?>>>requiredServices
-
Constructor Summary
Constructors Constructor Description SourceJar()
-
Method Summary
Modifier and Type Method Description final UnitsourceSet(String name, Boolean failOnMissingName)Adds the SourceSet with the provided name to the contents of the SourceJar. final UnitsourceSet(String name)Adds the SourceSet with the provided name to the contents of the SourceJar. final UnitsourceSet(SourceSet sourceSet)Adds a sourceSet source. final UnitsourceSet(SourceDirectorySet sourceDirectorySet)Adds a sourceDirectorySet source. final Unitsource(File file)Adds a file source. -
Methods inherited from class org.gradle.jvm.tasks.Jar
getManifest, getManifestContentCharset, getMetaInf, getMetadataCharset, manifest, manifest, metaInf, metaInf, setManifest, setManifestContentCharset, setMetadataCharset -
Methods inherited from class org.gradle.api.tasks.bundling.Zip
getEntryCompression, isZip64, setEntryCompression, setZip64 -
Methods inherited from class org.gradle.api.tasks.bundling.AbstractArchiveTask
getAppendix, getArchiveAppendix, getArchiveBaseName, getArchiveClassifier, getArchiveExtension, getArchiveFile, getArchiveFileName, getArchiveName, getArchivePath, getArchiveVersion, getBaseName, getClassifier, getDestinationDir, getDestinationDirectory, getExtension, getVersion, into, into, into, isPreserveFileTimestamps, isReproducibleFileOrder, setAppendix, setArchiveName, setBaseName, setClassifier, setDestinationDir, setExtension, setPreserveFileTimestamps, setReproducibleFileOrder, setVersion -
Methods inherited from class org.gradle.api.tasks.AbstractCopyTask
eachFile, eachFile, exclude, exclude, exclude, exclude, expand, expand, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDirMode, getDuplicatesStrategy, getExcludes, getFileMode, getFilteringCharset, getIncludeEmptyDirs, getIncludes, getRootSpec, getSource, include, include, include, include, isCaseSensitive, rename, rename, rename, rename, setCaseSensitive, setDirMode, setDuplicatesStrategy, setExcludes, setFileMode, setFilteringCharset, setIncludeEmptyDirs, setIncludes, with -
Methods inherited from class org.gradle.api.internal.ConventionTask
conventionMapping, conventionMapping, getConventionMapping -
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, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
sourceSet
@JvmOverloads() final Unit sourceSet(String name, Boolean failOnMissingName)
Adds the SourceSet with the provided name to the contents of the SourceJar. In case the source set does not exist, if failOnMissingName is set, the task throws IllegalStateException.
-
sourceSet
@JvmOverloads() final Unit sourceSet(String name)
Adds the SourceSet with the provided name to the contents of the SourceJar. In case the source set does not exist, if failOnMissingName is set, the task throws IllegalStateException.
-
sourceSet
final Unit sourceSet(SourceDirectorySet sourceDirectorySet)
Adds a sourceDirectorySet source.
-
-
-
-