Class ProtobufExtension.BufFormatExtension

java.lang.Object
com.diffplug.gradle.spotless.ProtobufExtension.BufFormatExtension
Enclosing class:
ProtobufExtension

public class ProtobufExtension.BufFormatExtension extends Object
  • Method Details

    • pathToExe

      public ProtobufExtension.BufFormatExtension pathToExe(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
       }