Class ByteBuddyMojo.ForProductionTypes

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Enclosing class:
    ByteBuddyMojo

    @Mojo(name="transform",
          defaultPhase=PROCESS_CLASSES,
          threadSafe=true,
          requiresDependencyResolution=COMPILE)
    public static class ByteBuddyMojo.ForProductionTypes
    extends ByteBuddyMojo
    A Byte Buddy plugin that transforms a project's production class files.
    • Field Detail

      • outputDirectory

        @Parameter(defaultValue="${project.build.outputDirectory}",
                   required=true,
                   readonly=true)
        protected java.lang.String outputDirectory
        The current build's production output directory.
      • compileClasspathElements

        @Parameter(defaultValue="${project.compileClasspathElements}",
                   required=true,
                   readonly=true)
        protected java.util.List<java.lang.String> compileClasspathElements
        The production class path.
    • Constructor Detail

      • ForProductionTypes

        public ForProductionTypes()
    • Method Detail

      • getOutputDirectory

        protected java.lang.String getOutputDirectory()
        Description copied from class: ByteBuddyMojo
        Returns the output directory to search for class files.
        Specified by:
        getOutputDirectory in class ByteBuddyMojo
        Returns:
        The output directory to search for class files.
      • getClassPathElements

        protected java.util.List<java.lang.String> getClassPathElements()
        Description copied from class: ByteBuddyMojo
        Returns the class path elements of the relevant output directory.
        Specified by:
        getClassPathElements in class ByteBuddyMojo
        Returns:
        The class path elements of the relevant output directory.