sealed trait MergeStrategy extends (Vector[Dependency]) ⇒ Either[String, Vector[JarEntry]]
Merges dependencies that share the same target path or transforms them before adding to the assembly
Return a Right[Vector[JarEntry]]] for a successful merge or a Left[String] of an error message to fail the process
- Alphabetic
- By Inheritance
- MergeStrategy
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
apply(v1: Vector[Dependency]): Either[String, Vector[JarEntry]]
- Definition Classes
- Function1
-
abstract
def
name: String
A descriptive name of the merge strategy which will be used in logging the merge results
-
abstract
def
notifyThreshold: Int
Report the merge counts only if the number of files to be merged are >= this threshold
Report the merge counts only if the number of files to be merged are >= this threshold
- returns
the threshold
Concrete 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
-
def
andThen[A](g: (Either[String, Vector[JarEntry]]) ⇒ A): (Vector[Dependency]) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compose[A](g: (A) ⇒ Vector[Dependency]): (A) ⇒ Either[String, Vector[JarEntry]]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
detailLogLevel: sbt.util.Level.Value
Log details of the merge only if assembly / logLevel is set to this or a less-restrictive level
Log details of the merge only if assembly / logLevel is set to this or a less-restrictive level
- returns
the log level threshold for logging the details
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[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()
-
def
isBuiltIn: Boolean
Namespaces built-in strategies from user-provided ones
Namespaces built-in strategies from user-provided ones
- returns
if this merge strategy is a built-in/internal instance provided by the plugin
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
summaryLogLevel: sbt.util.Level.Value
Log the summary message of the merge only if assembly / logLevel is set to this or a less-restrictive level
Log the summary message of the merge only if assembly / logLevel is set to this or a less-restrictive level
- returns
the log level threshold for logging the summary
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Function1 → 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
- @throws( ... ) @native()