-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
129 lines (113 loc) · 3.99 KB
/
build.gradle
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
name = "sonatype"
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
}
dependencies {
classpath "com.diffplug.spotless:spotless-plugin-gradle:6.19.0"
classpath "gradle.plugin.com.github.johnrengelman:shadow:7.1.2"
classpath "io.opentelemetry.instrumentation:gradle-plugins:1.31.0-alpha"
}
}
group 'io.lumigo.javaagent'
subprojects {
version = rootProject.version
apply plugin: "java"
// Exclude OTeL instrumentation override sub projects
if (it.name != "apache-httpclient-5.0"
&& it.name != "java-http-client"
&& it.name != "library"
&& !it.path.contains("aws-sdk-2.2")
&& !it.path.contains("spring-webmvc-3.1")
&& !it.path.contains("spring-webflux-5.0")
&& !it.path.contains("rabbitmq-2.7")
&& !it.path.contains("lettuce-5.1")
) {
apply plugin: "com.diffplug.spotless"
spotless {
java {
googleJavaFormat()
licenseHeaderFile(rootProject.file("./gradle/spotless.license.java"), "(package|import|public)")
target("src/**/*.java")
}
}
}
tasks.withType(Test) {
testLogging {
exceptionFormat "full"
events "started", "skipped", "passed", "failed"
showStandardStreams true
}
}
ext {
versions = [
opentelemetrySdk : "1.32.0",
opentelemetryContrib : "1.32.0-alpha",
opentelemetryJavaagent : "1.32.0",
opentelemetryJavaagentAlpha: "1.32.0-alpha",
// Instrumentation versions
apachehttpclient50 : "5.0",
awssdk11 : "1.11.106",
awssdk22 : "2.2.0",
grpc16 : "1.6.0",
jedis14 : "1.4.0",
kafkaclients011 : "0.11.0.0",
rabbitmq27 : "2.7.0",
servlet30 : "3.0.1",
springwebmvc31 : "3.1.0.RELEASE",
springboot : "2.7.14",
storm : "2.6.0",
lettuce51 : "6.3.2.RELEASE",
netty41 : "4.1.0.Final",
jackson : "2.15.2",
bytebuddy : "1.14.5",
autoservice : "1.1.1",
autovalue : "1.10.1",
junit : "5.9.3",
mockito : "5.4.0",
testcontainers : "1.17.6",
hamcrest : "2.2"
]
deps = [
bytebuddy : "net.bytebuddy:byte-buddy-dep:${versions.bytebuddy}",
autoservice: [
"com.google.auto.service:auto-service:${versions.autoservice}",
"com.google.auto.service:auto-service-annotations:${versions.autoservice}",
]
]
}
repositories {
mavenCentral()
maven {
name = "sonatype"
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
}
dependencies {
// otel BOM
implementation(platform("io.opentelemetry:opentelemetry-bom:${versions.opentelemetrySdk}"))
// these serve as a test of the instrumentation BOMs
implementation(platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:${versions.opentelemetryJavaagent}"))
implementation(platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:${versions.opentelemetryJavaagentAlpha}"))
testImplementation("org.mockito:mockito-core:${versions.mockito}")
testImplementation("org.mockito:mockito-junit-jupiter:${versions.mockito}")
testImplementation("org.awaitility:awaitility:4.2.0")
testImplementation(enforcedPlatform("org.junit:junit-bom:${versions.junit}"))
testImplementation("org.junit.jupiter:junit-jupiter-api")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
testImplementation("org.junit.jupiter:junit-jupiter-params")
}
tasks {
test {
useJUnitPlatform()
}
compileJava {
options.release.set(8)
}
}
}