public abstract static class ByteBuddyMojo.ForLifecycleTypes extends ByteBuddyMojo
| Modifier and Type | Class and Description |
|---|---|
static class |
ByteBuddyMojo.ForLifecycleTypes.ForProductionTypes
A Byte Buddy plugin that transforms a project's production class files.
|
static class |
ByteBuddyMojo.ForLifecycleTypes.ForTestTypes
A Byte Buddy plugin that transforms a project's test class files.
|
ByteBuddyMojo.Coordinate, ByteBuddyMojo.ForDependencyFolder, ByteBuddyMojo.ForExplicitLocations, ByteBuddyMojo.ForLifecycleTypes, ByteBuddyMojo.MavenBuildLogger, ByteBuddyMojo.StalenessFilter, ByteBuddyMojo.TransformationLogger, ByteBuddyMojo.Transformer| Modifier and Type | Field and Description |
|---|---|
BuildContext |
context
The build context to support incremental builds.
|
boolean |
incremental
Determines if plugins are attempted to be built incrementally.
|
classPathDiscovery, discovery, execution, extendedParsing, failFast, failOnLiveInitializer, initialization, multiReleaseVersion, project, repositorySystem, repositorySystemSession, skip, staleMilliseconds, suffix, threads, transformations, warnOnEmptyTypeSet, warnOnMissingOutputDirectory| Constructor and Description |
|---|
ForLifecycleTypes() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
apply(List<ByteBuddyMojo.Transformer> transformers,
List<String> elements,
Map<ByteBuddyMojo.Coordinate,String> coordinates)
Applies this mojo for the given setup.
|
protected abstract String |
getOutputDirectory()
Returns the output directory to search for class files.
|
protected abstract String |
getSourceDirectory()
Returns the source directory that determines the class files to process.
|
execute, resolveClassPathElements, transformgetLog, getPluginContext, setLog, setPluginContext@MaybeNull @Component public BuildContext context
@Parameter(defaultValue="false", required=true) public boolean incremental
protected abstract String getOutputDirectory()
@MaybeNull protected abstract String getSourceDirectory()
protected void apply(List<ByteBuddyMojo.Transformer> transformers, List<String> elements, Map<ByteBuddyMojo.Coordinate,String> coordinates) throws MojoExecutionException, IOException
ByteBuddyMojoapply in class ByteBuddyMojotransformers - The transformers to apply.elements - The class path elements to consider.coordinates - Versions for managed dependencies.MojoExecutionException - If the plugin fails due to a user error.IOException - If an I/O exception occurs.Copyright © 2014–2025. All rights reserved.