Index

A C E F G I K M P R S 
All Classes and Interfaces|All Packages

A

apply(Project) - Method in class com.ljarocki.shadedjar.ShadedJarPlugin
 

C

com.ljarocki.shadedjar - package com.ljarocki.shadedjar
 

E

exclude(String...) - Method in interface com.ljarocki.shadedjar.RelocationSpec
 
execute() - Method in class com.ljarocki.shadedjar.PackAction
 

F

FatJarTask - Class in com.ljarocki.shadedjar
Builds a fat (uber) JAR by merging the project's own output and every runtime dependency into one archive.
FatJarTask() - Constructor for class com.ljarocki.shadedjar.FatJarTask
 

G

getArchiveClassifier() - Method in class com.ljarocki.shadedjar.ShadedJarExtension
Filename classifier for the fat jar (default all).
getArchiveFile() - Method in class com.ljarocki.shadedjar.FatJarTask
 
getClasspath() - Method in class com.ljarocki.shadedjar.FatJarTask
Everything to bundle: the project's classes/resource directories followed by the runtime-dependency jars.
getDropClasses() - Method in interface com.ljarocki.shadedjar.PackParams
minimize()'s drop set (see Minimizer): internal (slash-form) names of classes to omit entirely, computed once by FatJarTask before the parallel packing phase.
getLevel() - Method in class com.ljarocki.shadedjar.FatJarTask
DEFLATE level, -1 = zlib default (6).
getLevel() - Method in interface com.ljarocki.shadedjar.PackParams
DEFLATE level, or -1 for the zlib default (matches Gradle's stock Zip).
getMainClass() - Method in class com.ljarocki.shadedjar.FatJarTask
Main-Class manifest attribute; if unset, the jar is not executable.
getMainClass() - Method in class com.ljarocki.shadedjar.ShadedJarExtension
Main-Class written into the fat jar's manifest.
getManifestAttributes() - Method in class com.ljarocki.shadedjar.FatJarTask
Extra manifest main-attributes to add.
getMinimize() - Method in class com.ljarocki.shadedjar.FatJarTask
When true, drops any bundled dependency class Minimizer's reachability analysis can't prove is used by the project's own code.
getMinimize() - Method in class com.ljarocki.shadedjar.ShadedJarExtension
When true, drops any bundled dependency class the reachability analysis can't prove is used by the project's own code (see Minimizer).
getMinimizeKeep() - Method in class com.ljarocki.shadedjar.FatJarTask
Classes minimize() never drops regardless of reachability; see MinimizeSpec.keep(java.lang.String...).
getMinimizeKeep() - Method in class com.ljarocki.shadedjar.ShadedJarExtension
Classes never dropped by minimize() regardless of reachability (see MinimizeSpec.keep(java.lang.String...)); exact dotted name or a .** prefix wildcard, same pattern language as relocation's include/exclude.
getPackCacheDir() - Method in class com.ljarocki.shadedjar.FatJarTask
Persistent cross-build cache directory for packed sources (see PackCache); set by ShadedJarPlugin to a fixed location under Gradle's user home.
getPackCacheDir() - Method in interface com.ljarocki.shadedjar.PackParams
Persistent cross-build cache directory (see PackCache); optional — absent disables caching for this source.
getPart() - Method in interface com.ljarocki.shadedjar.PackParams
Output part file this worker writes.
getProjectOutput() - Method in class com.ljarocki.shadedjar.FatJarTask
The project's own compiled output (classes/resource directories) — a subset of FatJarTask.getClasspath(), tracked separately so Minimizer knows which reachability roots to always keep, as opposed to the dependency jars that are actually eligible for dropping.
getRelocationExcludes() - Method in class com.ljarocki.shadedjar.FatJarTask
Exclude patterns per relocation, same shape as FatJarTask.getRelocationIncludes().
getRelocationExcludes() - Method in interface com.ljarocki.shadedjar.PackParams
Exclude patterns per relocation, same shape as PackParams.getRelocationIncludes().
getRelocationExcludes() - Method in class com.ljarocki.shadedjar.ShadedJarExtension
Exclude patterns per relocation, same shape as ShadedJarExtension.getRelocationIncludes().
getRelocationIncludes() - Method in class com.ljarocki.shadedjar.FatJarTask
Include patterns per relocation, keyed by the same prefix as FatJarTask.getRelocations().
getRelocationIncludes() - Method in interface com.ljarocki.shadedjar.PackParams
Include patterns per relocation, keyed by the same prefix as PackParams.getRelocations().
getRelocationIncludes() - Method in class com.ljarocki.shadedjar.ShadedJarExtension
Include patterns per relocation, keyed by the same from prefix as ShadedJarExtension.getRelocations(); comma-separated.
getRelocations() - Method in class com.ljarocki.shadedjar.FatJarTask
Package relocations: source dotted prefix -> shaded dotted prefix.
getRelocations() - Method in interface com.ljarocki.shadedjar.PackParams
Package relocations (source dotted prefix -> shaded dotted prefix); empty = fat jar.
getRelocations() - Method in class com.ljarocki.shadedjar.ShadedJarExtension
Package relocations: source dotted prefix -> shaded dotted prefix.
getSource() - Method in interface com.ljarocki.shadedjar.PackParams
The source jar file or classes/resource directory.
getStore() - Method in class com.ljarocki.shadedjar.FatJarTask
STORE everything instead of DEFLATE (fastest, ~larger).
getStore() - Method in interface com.ljarocki.shadedjar.PackParams
When true, STORE every entry instead of DEFLATE (fastest, larger output).
getWorkerExecutor() - Method in class com.ljarocki.shadedjar.FatJarTask
 

I

include(String...) - Method in interface com.ljarocki.shadedjar.RelocationSpec
 

K

keep(String...) - Method in interface com.ljarocki.shadedjar.MinimizeSpec
 

M

minimize() - Method in class com.ljarocki.shadedjar.ShadedJarExtension
DSL sugar: minimize() turns on dead-class stripping with no keep exceptions.
minimize(Action<? super MinimizeSpec>) - Method in class com.ljarocki.shadedjar.ShadedJarExtension
DSL sugar with a scoping block: minimize { keep '...' }.
MinimizeSpec - Interface in com.ljarocki.shadedjar
Configures the optional scoping block on minimize { ... } (see ShadedJarExtension).

P

PackAction - Class in com.ljarocki.shadedjar
Thin Gradle Worker-API wrapper around SourcePacker: one work item packs one source (a dependency jar or a classes directory) into a part file.
PackAction() - Constructor for class com.ljarocki.shadedjar.PackAction
 
PackParams - Interface in com.ljarocki.shadedjar
Parameters for packing one source (a dependency jar or a classes directory).

R

relocate(String, String) - Method in class com.ljarocki.shadedjar.ShadedJarExtension
DSL sugar: relocate 'com.google.common', 'shaded.guava'.
relocate(String, String, Action<? super RelocationSpec>) - Method in class com.ljarocki.shadedjar.ShadedJarExtension
DSL sugar with a scoping block: relocate 'from', 'to', { exclude '...' }.
RelocationSpec - Interface in com.ljarocki.shadedjar
Configures the optional scoping block on a relocate(from, to) { ... } rule (see ShadedJarExtension).
run() - Method in class com.ljarocki.shadedjar.FatJarTask
 

S

ShadedJarExtension - Class in com.ljarocki.shadedjar
DSL for the plugin:
ShadedJarExtension() - Constructor for class com.ljarocki.shadedjar.ShadedJarExtension
 
ShadedJarPlugin - Class in com.ljarocki.shadedjar
Registers the fatJar task and, when the java plugin is present, wires it to the project's runtime classpath and main output automatically.
ShadedJarPlugin() - Constructor for class com.ljarocki.shadedjar.ShadedJarPlugin
 
A C E F G I K M P R S 
All Classes and Interfaces|All Packages