-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
55 lines (44 loc) · 1.13 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
plugins {
id 'org.springframework.boot' version '3.2.3'
id 'io.spring.dependency-management' version '1.1.4'
id 'java'
}
group = 'io.honeycomb.examples'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
ext {
distroVersion = '1.6.0'
}
configurations {
agent
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
agent "io.honeycomb:honeycomb-opentelemetry-javaagent:${distroVersion}"
implementation("io.honeycomb:honeycomb-opentelemetry-sdk:${distroVersion}")
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
task copyAgentJar(type: Copy) {
from configurations.agent {
include '**/honeycomb-opentelemetry-javaagent*.jar'
}
into "agent"
rename { fileName -> "honey-javaagent.jar" }
}
compileJava.dependsOn copyAgentJar
bootRun.dependsOn copyAgentJar
bootRun.doFirst {
jvmArgs("-javaagent:agent/honey-javaagent.jar")
}
clean.doFirst {
delete "agent"
}
test {
useJUnitPlatform()
}