-
- 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 JarTasks extends JarWithClassifier
A task generating a Jar file with the project source code.
-
-
Constructor Summary
Constructors Constructor Description JarTasks()
-
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 JarTasks. final UnitsourceSet(String name)Adds the SourceSet with the provided name to the contents of the JarTasks. 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.api.internal.ConventionTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, 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.gradle.api.DefaultTask
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getReasonNotToTrackState, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects -
Methods inherited from class org.gradle.api.tasks.AbstractCopyTask
conventionMapping, conventionMapping, getConventionMapping -
Methods inherited from class org.gradle.api.tasks.bundling.AbstractArchiveTask
copy, createRootSpec, eachFile, eachFile, exclude, exclude, exclude, exclude, expand, expand, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDirMode, getDirectoryFileTreeFactory, getDocumentationRegistry, getDuplicatesStrategy, getExcludes, getFileLookup, getFileMode, getFileResolver, getFileSystem, getFilteringCharset, getIncludeEmptyDirs, getIncludes, getInstantiator, getMainSpec, getObjectFactory, 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.tasks.bundling.Zip
createCopyActionExecuter, 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.jvm.tasks.Jar
createCopyAction, getCompressor, getEntryCompression, isZip64, setEntryCompression, setZip64 -
Methods inherited from class org.danilopianini.gradle.mavencentral.JarWithClassifier
getManifest, getManifestContentCharset, getMetaInf, getMetadataCharset, manifest, manifest, metaInf, metaInf, setManifest, setManifestContentCharset, setMetadataCharset -
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 JarTasks. 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 JarTasks. 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.
-
-
-
-