-
Notifications
You must be signed in to change notification settings - Fork 146
/
Copy pathbuild.gradle.kts
34 lines (28 loc) · 945 Bytes
/
build.gradle.kts
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
plugins {
id("otel.java-conventions")
id("com.google.protobuf") version "0.9.4"
}
description = "Client implementation of the OpAMP spec."
otelJava.moduleName.set("io.opentelemetry.contrib.opamp.client")
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<JavaCompile>().configureEach {
with(options) {
// Suppressing warnings about the usage of deprecated methods.
// This is needed because the Protobuf plugin (com.google.protobuf) generates code that uses deprecated methods.
compilerArgs.add("-Xlint:-deprecation")
}
}
val protobufVersion = "4.28.2"
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:$protobufVersion"
}
}
dependencies {
implementation("com.google.protobuf:protobuf-java:$protobufVersion")
annotationProcessor("com.google.auto.value:auto-value")
compileOnly("com.google.auto.value:auto-value-annotations")
}