Package org.gradle.jvm
Interface JarBinarySpec
- All Superinterfaces:
Binary,BinarySpec,Buildable,BuildableComponentSpec,CheckableComponentSpec,ComponentSpec,JvmBinarySpec,LibraryBinarySpec,ModelElement,Named
Definition of a Jar file binary that is to be built by Gradle.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceProvides access to key tasks used for building the binary.Nested classes/interfaces inherited from interface org.gradle.api.Named
Named.Namer -
Method Summary
Modifier and TypeMethodDescriptionThe API jar file output for this binary.getId()The unique identifier of this JarBinarySpec.The jar file output for this binary.The library that this binary belongs to.getTasks()The set of tasks associated with this binary.voidsetApiJarFile(File jarFile) Sets the API jar file output for this binary.voidsetExportedPackages(Set<String> exportedPackages) voidsetJarFile(File jarFile) Sets the jar file output for this binary.Methods inherited from interface org.gradle.platform.base.Binary
getDisplayNameMethods inherited from interface org.gradle.platform.base.BinarySpec
getInputs, getSources, isBuildableMethods inherited from interface org.gradle.api.Buildable
getBuildDependenciesMethods inherited from interface org.gradle.api.BuildableComponentSpec
builtBy, getBuildTask, hasBuildDependencies, setBuildTaskMethods inherited from interface org.gradle.api.CheckableComponentSpec
checkedBy, getCheckTask, setCheckTaskMethods inherited from interface org.gradle.platform.base.ComponentSpec
getProjectPathMethods inherited from interface org.gradle.jvm.JvmBinarySpec
getClassesDir, getResourcesDir, getTargetPlatform, getToolChain, setClassesDir, setResourcesDir, setTargetPlatform, setToolChainMethods inherited from interface org.gradle.model.ModelElement
getDisplayName, getName
-
Method Details
-
getTasks
JarBinarySpec.TasksCollection getTasks()The set of tasks associated with this binary.- Specified by:
getTasksin interfaceBinarySpec
-
getLibrary
JvmLibrarySpec getLibrary()The library that this binary belongs to.- Specified by:
getLibraryin interfaceLibraryBinarySpec
-
getId
LibraryBinaryIdentifier getId()The unique identifier of this JarBinarySpec. -
getJarFile
File getJarFile()The jar file output for this binary. -
setJarFile
Sets the jar file output for this binary. -
getApiJarFile
File getApiJarFile()The API jar file output for this binary. -
setApiJarFile
Sets the API jar file output for this binary. -
setExportedPackages
-
getExportedPackages
-