-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (38 loc) · 1.32 KB
/
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
35
36
37
38
39
40
41
42
43
44
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
plugins {
id("com.github.johnrengelman.shadow")
id("otel.library-instrumentation")
}
dependencies {
compileOnly("com.google.auto.value:auto-value-annotations")
annotationProcessor("com.google.auto.value:auto-value")
testImplementation(project(":instrumentation:jdbc:testing"))
}
tasks {
shadowJar {
dependencies {
// including only current module excludes its transitive dependencies
include(project(":instrumentation:jdbc:library"))
}
// rename classes that are included in :instrumentation:jdbc:bootstrap
relocate("io.opentelemetry.instrumentation.jdbc.internal.dbinfo", "io.opentelemetry.javaagent.bootstrap.jdbc")
}
// this will be included in javaagent module
val extractShadowJarJavaagent by registering(Copy::class) {
dependsOn(shadowJar)
from(zipTree(shadowJar.get().archiveFile))
into("build/extracted/shadow-javaagent")
exclude("META-INF/**")
exclude("io/opentelemetry/javaagent/bootstrap/**")
}
// this will be included in bootstrap module
val extractShadowJarBootstrap by registering(Copy::class) {
dependsOn(shadowJar)
from(zipTree(shadowJar.get().archiveFile))
into("build/extracted/shadow-bootstrap")
include("io/opentelemetry/javaagent/bootstrap/**")
}
}