object Assembly
- Alphabetic
- By Inheritance
- Assembly
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
sealed
trait
Dependency extends AnyRef
Represents a Dependency that is an assembly jar candidate
-
case class
JarEntry(target: String, stream: LazyInputStream) extends Product with Serializable
Represents an assembly jar entry
Represents an assembly jar entry
- target
the path to write in the jar
- stream
the byte payload
- type LazyInputStream = () ⇒ InputStream
-
case class
Library(moduleCoord: ModuleCoordinate, source: String, target: String, stream: LazyInputStream) extends Dependency with Product with Serializable
Represents an entry of an external/library dependency jar
Represents an entry of an external/library dependency jar
- moduleCoord
the library's organization, name and version (i.e. Maven GAV)
- source
the original source path in the jar, before applying assembly processing (shading, merging, etc)
- target
the target path to be written to the assembly jar, after applying assembly processing (shading, merging, etc)
- stream
a lazy payload of bytes that represents the actual content to be written
-
case class
MergedEntry(entries: Vector[JarEntry], origins: Vector[Dependency], mergeStrategy: MergeStrategy) extends Product with Serializable
Encapsulates the result of applying a merge strategy
Encapsulates the result of applying a merge strategy
- entries
the resulting JarEntrys
- origins
the original Dependencys that were merged
- mergeStrategy
the MergeStrategy applied
-
case class
ModuleCoordinate(organization: String = "", name: String, version: String = "") extends Product with Serializable
Represents an external/library JAR (i.e.
Represents an external/library JAR (i.e. Maven GAV)
- organization
jar org
- name
jar name
- version
jar version
-
case class
Project(name: String, source: String, target: String, stream: LazyInputStream) extends Dependency with Product with Serializable
Represents an internal/project dependency
Represents an internal/project dependency
- name
the sbt project name
- source
the original source path, before applying assembly processing (shading, merging, etc)
- target
the target path to be written to the assembly jar, after applying assembly processing (shading, merging, etc)
- stream
a lazy payload of bytes that represents the actual content to be written
- type SeqShadeRules = Seq[ShadeRule]
- type SeqString = Seq[String]
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
assemble(targetJarName: String, output: sbt.File, classpath: Classpath, externalDepClasspath: Classpath, ao: AssemblyOption, po: Seq[PackageOption], cacheDir: sbt.File, log: sbt.Logger): sbt.File
Builds an assembly jar
Builds an assembly jar
- targetJarName
the name of the jar to build
- output
the path of the jar to build
- classpath
full classpath of the project and all its external dependencies
- externalDepClasspath
the external dependency classpath
- ao
assembly options configured via the build
- po
package options configured via the build
- cacheDir
the task cache directory
- log
the sbt logger
- returns
the built jar as an sbt.File
- val assemblyTag: Tag
- def assemblyTask(key: TaskKey[sbt.File]): sbt.Def.Initialize[Task[sbt.File]]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val defaultShadeRules: Seq[ShadeRule]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val indent: String
-
def
isConfigFile(fileName: String): Boolean
Returns a flag if the given file is a config file
Returns a flag if the given file is a config file
- fileName
the given file to check
- returns
flag representing if the file is a config file
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isLicenseFile(fileName: String): Boolean
Returns a flag if the given file is a license file
Returns a flag if the given file is a license file
- fileName
the given file to check
- returns
flag representing if the file is a license file
-
def
isReadme(fileName: String): Boolean
Returns a flag if the given file is a readme file
Returns a flag if the given file is a readme file
- fileName
the given file to check
- returns
flag representing if the file is a readme file
-
def
isScalaLibraryFile(scalaLibraries: Vector[String], file: sbt.File): Boolean
Returns a flag if the given file is part of the Scala library
Returns a flag if the given file is part of the Scala library
- scalaLibraries
the Scala library as a collection
- file
the given file to check
- returns
flag representing if the file is a Scala library
-
def
isSystemJunkFile(fileName: String): Boolean
Returns a flag if the given file is a junk file
Returns a flag if the given file is a junk file
- fileName
the given file to check
- returns
flag representing if the file is a junk file
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val newLine: String
- val newLineIndented: String
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )