aboutsummaryrefslogtreecommitdiff
path: root/protobuf-nano/build.gradle
blob: 5053e49e1b6300133c4925a8364ef4b258924f69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Add dependency on the protobuf plugin
buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath libraries.protobuf_plugin
    }
}

plugins {
    id "be.insaneprogramming.gradle.animalsniffer" version "1.4.0"
}

description = 'gRPC: Protobuf Nano'

dependencies {
    compile project(':grpc-core'),
            libraries.protobuf_nano,
            libraries.guava
}

animalsniffer {
    signature = "org.codehaus.mojo.signature:java16:+@signature"
}

configureProtoCompilation()

if (project.hasProperty('protobuf')) {
  protobuf {
    generateProtoTasks {
      all().each { task ->
        task.builtins {
          remove java
          javanano {
            option 'ignore_services=true'
          }
        }
      }
    }
  }
}

idea {
    module {
        sourceDirs += file("${projectDir}/src/generated/test/javanano");
    }
}