forked from hypertrace/javaagent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
77 lines (66 loc) · 2.19 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
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
import org.hypertrace.gradle.publishing.License.APACHE_2_0;
plugins {
`java-library`
id("com.diffplug.spotless") version "5.2.0" apply false
id("org.hypertrace.publish-maven-central-plugin") version "1.0.2" apply false
id("org.hypertrace.ci-utils-plugin") version "0.3.0"
id("org.gradle.test-retry") version "1.2.0" apply false
}
allprojects {
apply(plugin="java-library")
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<JavaCompile> {
options.compilerArgs.add("-Xlint:unchecked")
options.isDeprecation = true
}
}
val testDependencies by configurations.creating {
extendsFrom(configurations.testImplementation.get())
extendsFrom(configurations.testRuntimeOnly.get())
}
subprojects {
group = "org.hypertrace.agent"
description = "Hypertrace OpenTelemetry Javaagent"
extra.set("versions", mapOf(
"opentelemetry" to "1.0.1",
"opentelemetry_java_agent" to "1.0.1-alpha",
"opentelemetry_java_agent_all" to "1.0.1",
"byte_buddy" to "1.10.18",
"slf4j" to "1.7.30"
))
apply<JavaPlugin>()
apply(plugin = "com.diffplug.spotless")
apply(from = "$rootDir/gradle/spotless.gradle")
repositories {
mavenCentral()
jcenter()
maven {
url = uri("https://dl.bintray.com/open-telemetry/maven")
}
maven {
url = uri("https://oss.jfrog.org/artifactory/oss-snapshot-local")
}
}
pluginManager.withPlugin("org.hypertrace.publish-maven-central-plugin") {
configure<org.hypertrace.gradle.publishing.HypertracePublishMavenCentralExtension> {
repoName.set("javaagent")
license.set(APACHE_2_0)
}
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.0")
testImplementation("org.junit-pioneer:junit-pioneer:1.0.0")
}
tasks {
test {
useJUnitPlatform()
reports {
junitXml.isOutputPerTestCase = true
}
}
}
}