Class ProtobufExtension.BufFormatExtension

  • Enclosing class:
    ProtobufExtension

    public class ProtobufExtension.BufFormatExtension
    extends java.lang.Object
    • Method Detail

      • pathToExe

        public ProtobufExtension.BufFormatExtension pathToExe​(java.lang.String pathToExe)
        When used in conjunction with the buf-gradle-plugin, the buf executable can be resolved from its bufTool configuration:
         
         spotless {
           protobuf {
             buf().pathToExe(configurations.getByName(BUF_BINARY_CONFIGURATION_NAME).getSingleFile().getAbsolutePath())
           }
         }
         
         
        Be sure to disable the buf-gradle-plugin's execution of buf format:
         
         buf {
           enforceFormat = false
         }