blob: 86d65053085c40308542ef5259bec5266d73a0ad [file] [log] [blame]
description = 'OpenCensus AppEngine Standard Util'
apply plugin: 'java'
apply plugin: 'com.google.protobuf'
def protocVersion = '3.11.4'
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
}