github.com/yoheimuta/protolint@v0.49.8-0.20240515023657-4ecaebb7575d/_example/gradle/build.gradle (about)

     1  plugins {
     2      id 'java'
     3      id 'com.google.protobuf' version '0.8.18'
     4  }
     5  
     6  protobuf {
     7      protoc {
     8          artifact = "com.google.protobuf:protoc:3.19.4"
     9      }
    10      plugins {
    11          protolint {
    12              artifact = "io.github.yoheimuta:protoc-gen-protolint:0.43.2"
    13          }
    14      }
    15  
    16      generateProtoTasks {
    17          all().each { task ->
    18              task.plugins {
    19                  protolint {
    20                      option 'proto_root=src/main/proto'
    21                      option 'output_file=build/generated/source/proto/main/protolint/results.txt'
    22                  }
    23              }
    24          }
    25      }
    26  }
    27  
    28  repositories {
    29      mavenCentral()
    30  }