-
Notifications
You must be signed in to change notification settings - Fork 333
Expand file tree
/
Copy pathbuild.gradle
More file actions
37 lines (32 loc) · 1.2 KB
/
build.gradle
File metadata and controls
37 lines (32 loc) · 1.2 KB
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id "com.gradleup.shadow"
id "dd-trace-java.profiling-ddprof-override"
}
apply from: "$rootDir/gradle/java.gradle"
dependencies {
// This module provides the ddprof library as an api dependency
// so that other modules can easily depend on it.
implementation project.hasProperty('ddprof.jar') ? files(project.findProperty('ddprof.jar')) : libs.ddprof
api project(':internal-api')
api project(':dd-trace-api')
}
tasks.named("shadowJar", ShadowJar) {
dependencies {
deps.excludeShared
exclude '**/*.debug'
}
archiveClassifier = 'all'
include {
def rslt = false
rslt |= it.path == 'datadog' || it.path == "com" || it.path == "com/datadog"
|| it.path.startsWith("datadog/") || it.path == "com/datadoghq" || it.path == "com/datadoghq/profiler"
|| it.path.startsWith("com/datadoghq/profiler")
rslt |= it.path == "META-INF" || it.path == "META-INF/services" || it.path.startsWith("META-INF/services/") || it.path.startsWith("META-INF/native-libs/")
rslt |= (it.path.contains("ddprof") && it.path.endsWith(".jar"))
return rslt
}
}
tasks.named("build") {
dependsOn tasks.named("shadowJar")
}