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 49 50 51 52
|
description = 'OpenCensus AppEngine Standard Util'
apply plugin: 'java'
apply plugin: 'com.google.protobuf'
def protocVersion = '3.6.1'
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.8"
}
}
[compileJava, compileTestJava].each() {
it.sourceCompatibility = 1.7
it.targetCompatibility = 1.7
}
dependencies {
compile project(':opencensus-api'),
libraries.appengine_api,
libraries.guava,
libraries.protobuf
signature "org.codehaus.mojo.signature:java18:+@signature"
}
protobuf {
protoc {
// The artifact spec for the Protobuf Compiler
artifact = "com.google.protobuf:protoc:${protocVersion}"
}
generatedFilesBaseDir = "$projectDir/gen_gradle/src"
generateProtoTasks {
all().each { task ->
task.builtins {
java {
option 'annotate_code'
}
}
}
}
}
clean {
delete protobuf.generatedFilesBaseDir
}
|