Class ProtoCompatibilityMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.infinispan.plugins.proto.compatibility.ProtoCompatibilityMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="proto-schema-compatibility-check", defaultPhase=VERIFY, requiresDependencyResolution=COMPILE, threadSafe=true) public class ProtoCompatibilityMojo extends org.apache.maven.plugin.AbstractMojo
Protocol Buffers compatibility checks using ProtoStream
Since:
10.0
  • Field Details

    • commitProtoLock

      @Parameter(defaultValue="false") private boolean commitProtoLock
    • protoLockRoot

      @Parameter(defaultValue="${basedir}") private String protoLockRoot
    • protoSourceRoot

      @Parameter(defaultValue="${project.build.directory}/classes/proto", readonly=true) private String protoSourceRoot
    • remoteLockFiles

      @Parameter private String remoteLockFiles
    • session

      @Parameter(defaultValue="${session}") private org.apache.maven.execution.MavenSession session
    • skip

      @Parameter(defaultValue="false") private boolean skip
  • Constructor Details

    • ProtoCompatibilityMojo

      public ProtoCompatibilityMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Execute the plugin.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - thrown when execution of protolock fails.
    • protoLockFromDir

      private ProtoLock protoLockFromDir(Path protoRoot) throws IOException
      Throws:
      IOException
    • checkRemoteCompatibility

      private void checkRemoteCompatibility(ProtoLock currentState) throws IOException
      Throws:
      IOException
    • remoteCheck

      private boolean remoteCheck()