-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
52 lines (44 loc) · 1.29 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
plugins {
id 'application'
id 'java'
id "com.diffplug.spotless" version "6.25.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation platform("io.opentelemetry:opentelemetry-bom:1.37.0")
implementation("io.opentelemetry:opentelemetry-api")
implementation("io.opentelemetry:opentelemetry-exporter-otlp")
implementation("io.opentelemetry:opentelemetry-sdk")
implementation("io.opentelemetry.semconv:opentelemetry-semconv:1.23.1-alpha")
// Log4j
implementation(platform("org.apache.logging.log4j:log4j-bom:2.23.1"))
implementation("org.apache.logging.log4j:log4j-api")
implementation("org.apache.logging.log4j:log4j-core")
// OpenTelemetry log4j appender
implementation("io.opentelemetry.instrumentation:opentelemetry-log4j-appender-2.17:2.2.0-alpha")
}
application {
mainClass = 'otel.recipes.App'
}
jar {
duplicatesStrategy = 'exclude'
manifest {
attributes 'Main-Class': 'otel.recipes.App'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
spotless {
format 'misc', {
target '*.gradle', '*.md', '.gitignore'
trimTrailingWhitespace()
indentWithSpaces(4)
endWithNewline()
}
java {
googleJavaFormat()
}
}